feat: enable state key on generic oauth2 (#6104)
This commit is contained in:
parent
9dddef3a3f
commit
12233c476d
@ -18,7 +18,8 @@ module.exports = {
|
|||||||
userInfoURL: conf.userInfoURL,
|
userInfoURL: conf.userInfoURL,
|
||||||
callbackURL: conf.callbackURL,
|
callbackURL: conf.callbackURL,
|
||||||
passReqToCallback: true,
|
passReqToCallback: true,
|
||||||
scope: conf.scope
|
scope: conf.scope,
|
||||||
|
state: true
|
||||||
}, async (req, accessToken, refreshToken, profile, cb) => {
|
}, async (req, accessToken, refreshToken, profile, cb) => {
|
||||||
try {
|
try {
|
||||||
const user = await WIKI.models.users.processProfile({
|
const user = await WIKI.models.users.processProfile({
|
||||||
|
Loading…
Reference in New Issue
Block a user