feat(auth): OAuth2 scope support (#5181)
This commit is contained in:
@@ -17,7 +17,8 @@ module.exports = {
|
||||
clientSecret: conf.clientSecret,
|
||||
userInfoURL: conf.userInfoURL,
|
||||
callbackURL: conf.callbackURL,
|
||||
passReqToCallback: true
|
||||
passReqToCallback: true,
|
||||
scope: conf.scope
|
||||
}, async (req, accessToken, refreshToken, profile, cb) => {
|
||||
try {
|
||||
const user = await WIKI.models.users.processProfile({
|
||||
|
Reference in New Issue
Block a user