feat: auth0 + discord + github + slack auth modules

This commit is contained in:
Nick
2019-04-21 21:43:33 -04:00
parent 8af21c02af
commit d7676513ac
20 changed files with 286 additions and 99 deletions

View File

@@ -15,9 +15,8 @@ module.exports = {
clientSecret: conf.clientSecret,
callbackURL: conf.callbackURL
}, async (accessToken, refreshToken, extraParams, profile, cb) => {
console.info(accessToken, refreshToken, extraParams, profile)
try {
const user = WIKI.models.users.processProfile({ profile, provider: 'auth0' })
const user = await WIKI.models.users.processProfile({ profile, providerKey: 'auth0' })
cb(null, user)
} catch (err) {
cb(err, null)