feat: expose skipUserProfile option in passport-oidc (#6190)

Co-authored-by: Robin Chalmers <robin.chalmers@kairostech.no>
This commit is contained in:
robinho81
2023-03-17 22:58:41 +01:00
committed by GitHub
parent 5acc7e752e
commit 8db4be668b
2 changed files with 14 additions and 7 deletions

View File

@@ -19,7 +19,8 @@ module.exports = {
issuer: conf.issuer,
userInfoURL: conf.userInfoURL,
callbackURL: conf.callbackURL,
passReqToCallback: true
passReqToCallback: true,
skipUserProfile: conf.skipUserProfile
}, async (req, iss, uiProfile, idProfile, context, idToken, accessToken, refreshToken, params, cb) => {
const profile = Object.assign({}, idProfile, uiProfile)