mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-02 00:10:47 -05:00
Merge pull request #1163 from SISheogorath/fix/googleAuth
Add required change for Google+ API deprecation
This commit is contained in:
commit
d1b2fb2258
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ let googleAuth = module.exports = Router()
|
||||||
passport.use(new GoogleStrategy({
|
passport.use(new GoogleStrategy({
|
||||||
clientID: config.google.clientID,
|
clientID: config.google.clientID,
|
||||||
clientSecret: config.google.clientSecret,
|
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))
|
}, passportGeneralCallback))
|
||||||
|
|
||||||
googleAuth.get('/auth/google', function (req, res, next) {
|
googleAuth.get('/auth/google', function (req, res, next) {
|
||||||
|
|
Loading…
Reference in a new issue