summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristoph (Sheogorath) Kern2019-03-09 14:50:20 +0100
committerGitHub2019-03-09 14:50:20 +0100
commitd1b2fb2258ae7e44457541c96e3d03f13ae1cb9e (patch)
treeade9dad5daecd83f8883395753b03a7821137e04 /lib
parentde0acbb566b3a9be095c414bf15edb734ac755be (diff)
parentcda878d3777b7cd57b70b48f9418ec5dd9c2d702 (diff)
Merge pull request #1163 from SISheogorath/fix/googleAuth
Add required change for Google+ API deprecation
Diffstat (limited to 'lib')
-rw-r--r--lib/web/auth/google/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/web/auth/google/index.js b/lib/web/auth/google/index.js
index 60282cf5..0a4fd55e 100644
--- a/lib/web/auth/google/index.js
+++ b/lib/web/auth/google/index.js
@@ -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) {