Skip to content

Commit

Permalink
add logs claims and userinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitSerrano committed Apr 30, 2024
1 parent 9ad69fb commit 1d48de1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/oidcAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ module.exports.finishAuth = async (req) => {
}
)
const claims = tokenSet.claims()
console.log(`CLAIMS : ${JSON.stringify(claims)}`)
const userinfo = await client.userinfo(tokenSet)
console.log(`USERINFO : ${JSON.stringify(userinfo)}`)


const email = claims.preferred_username

return {
Expand Down

0 comments on commit 1d48de1

Please sign in to comment.