From 1d48de1d0f2f4ec60e8c3b64099144159a105e46 Mon Sep 17 00:00:00 2001 From: Benoit Serrano Date: Tue, 30 Apr 2024 16:47:23 +0200 Subject: [PATCH] add logs claims and userinfo --- lib/oidcAuth.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/oidcAuth.js b/lib/oidcAuth.js index 0f2d0b3c..4c6ae9ad 100644 --- a/lib/oidcAuth.js +++ b/lib/oidcAuth.js @@ -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 {