|
|
|
@ -40,7 +40,8 @@ module.exports = {
|
|
|
|
clientID: conf.clientId,
|
|
|
|
clientID: conf.clientId,
|
|
|
|
clientSecret: conf.clientSecret,
|
|
|
|
clientSecret: conf.clientSecret,
|
|
|
|
callbackURL: conf.callbackURL,
|
|
|
|
callbackURL: conf.callbackURL,
|
|
|
|
passReqToCallback: true
|
|
|
|
passReqToCallback: true,
|
|
|
|
|
|
|
|
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({
|
|
|
|
|