fix: Switch converted to Object Literal (#940)
* updating a switch into object literal and fixed a couple linter errors * added a comment about weird formatting * style: use lodash get * fix: pass eslint + puglint + jest
This commit is contained in:
committed by
Nicolas Giard
parent
2142b5f674
commit
0f9ddf1e5d
@@ -5,7 +5,6 @@
|
||||
// ------------------------------------
|
||||
|
||||
const DiscordStrategy = require('passport-discord').Strategy
|
||||
const _ = require('lodash')
|
||||
|
||||
module.exports = {
|
||||
init (passport, conf) {
|
||||
|
@@ -20,7 +20,7 @@ module.exports = {
|
||||
githubConfig.authorizationURL = `https://${conf.enterpriseDomain}/login/oauth/authorize`
|
||||
githubConfig.tokenURL = `https://${conf.enterpriseDomain}/login/oauth/access_token`
|
||||
githubConfig.userProfileURL = conf.enterpriseUserEndpoint
|
||||
githubConfig.userEmailURL = `${conf.enterpriseUserEndpoint}/emails`
|
||||
githubConfig.userEmailURL = `${conf.enterpriseUserEndpoint}/emails`
|
||||
}
|
||||
|
||||
passport.use('github',
|
||||
|
Reference in New Issue
Block a user