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

* fix: incompatibility issues with passport-openidconnect

* fix: remove a trailing semicolon
This commit is contained in:
natsutteatsuiyone 2022-11-08 06:50:47 +09:00 committed by GitHub
parent 2cb304100c
commit 445ad05a3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,9 @@ module.exports = {
userInfoURL: conf.userInfoURL,
callbackURL: conf.callbackURL,
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 {
const user = await WIKI.models.users.processProfile({
providerKey: req.params.strategy,