fix: incompatibility issues with passport-openidconnect@0.1.1 (#5799)

* fix: incompatibility issues with passport-openidconnect

* fix: remove a trailing semicolon
pull/5838/head
natsutteatsuiyone 2 years ago committed by GitHub
parent 2cb304100c
commit 445ad05a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -20,7 +20,9 @@ module.exports = {
userInfoURL: conf.userInfoURL, userInfoURL: conf.userInfoURL,
callbackURL: conf.callbackURL, callbackURL: conf.callbackURL,
passReqToCallback: true passReqToCallback: true
}, async (req, iss, sub, profile, cb) => { }, async (req, iss, uiProfile, idProfile, context, idToken, accessToken, refreshToken, params, cb) => {
const profile = Object.assign({}, idProfile, uiProfile)
try { try {
const user = await WIKI.models.users.processProfile({ const user = await WIKI.models.users.processProfile({
providerKey: req.params.strategy, providerKey: req.params.strategy,

Loading…
Cancel
Save