Unverified Commit d1b2fb22 authored by Christoph (Sheogorath) Kern's avatar Christoph (Sheogorath) Kern Committed by GitHub
Browse files

Merge pull request #1163 from SISheogorath/fix/googleAuth

Add required change for Google+ API deprecation
parents de0acbb5 cda878d3
......@@ -11,7 +11,8 @@ let googleAuth = module.exports = Router()
passport.use(new GoogleStrategy({
clientID: config.google.clientID,
clientSecret: config.google.clientSecret,
callbackURL: config.serverURL + '/auth/google/callback'
callbackURL: config.serverURL + '/auth/google/callback',
userProfileURL: "https://www.googleapis.com/oauth2/v3/userinfo"
}, passportGeneralCallback))
googleAuth.get('/auth/google', function (req, res, next) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment