Skip to content

Commit

Permalink
feat: enable state key on generic oauth2 (#6104)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleuth56 committed Jan 29, 2023
1 parent 9dddef3 commit 12233c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/modules/authentication/oauth2/authentication.js
Expand Up @@ -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({
Expand Down

0 comments on commit 12233c4

Please sign in to comment.