feat: enable state key on generic oauth2 (#6104)

This commit is contained in:
Sleuth56 2023-01-29 16:51:40 -05:00 committed by GitHub
parent 9dddef3a3f
commit 12233c476d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,8 @@ module.exports = {
userInfoURL: conf.userInfoURL,
callbackURL: conf.callbackURL,
passReqToCallback: true,
scope: conf.scope
scope: conf.scope,
state: true
}, async (req, accessToken, refreshToken, profile, cb) => {
try {
const user = await WIKI.models.users.processProfile({