Skip to content

Commit

Permalink
fix(github): fix github enterprise authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabertelli committed Oct 25, 2023
1 parent c3528d5 commit 1e4ea24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions controllers/auth/read.auth.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,11 @@ router.get(
)
.then((respToken) => respToken.json())
.then((jsonToken) => {
logger.json('user json print')
logger.debug(jsonToken)
logger.debug('5')
accessToken = jsonToken.access_token
logger.debug(accessToken)
})
.catch((err) => console.log(err))
.then(() => {
Expand All @@ -148,6 +151,8 @@ router.get(
})
.then((respUser) => respUser.json())
.then((json) => {
logger.json('user json print')
logger.debug(json)
logger.debug(clientSecret)
userInfo.id = json.id
userInfo.displayName = json.name
Expand Down

0 comments on commit 1e4ea24

Please sign in to comment.