Skip to content

Commit 8168615

Browse files
authored
Merge pull request #541 from Stonesjtu/patch-1
Fix naming typo.
2 parents 2bdccd3 + 4ae8086 commit 8168615

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/web/auth/google/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ var GoogleStrategy = require('passport-google-oauth20').Strategy
66
const config = require('../../../config')
77
const {setReturnToFromReferer, passportGeneralCallback} = require('../utils')
88

9-
let facebookAuth = module.exports = Router()
9+
let googleAuth = module.exports = Router()
1010

1111
passport.use(new GoogleStrategy({
1212
clientID: config.google.clientID,
1313
clientSecret: config.google.clientSecret,
1414
callbackURL: config.serverurl + '/auth/google/callback'
1515
}, passportGeneralCallback))
1616

17-
facebookAuth.get('/auth/google', function (req, res, next) {
17+
googleAuth.get('/auth/google', function (req, res, next) {
1818
setReturnToFromReferer(req)
1919
passport.authenticate('google', { scope: ['profile'] })(req, res, next)
2020
})
2121
// google auth callback
22-
facebookAuth.get('/auth/google/callback',
22+
googleAuth.get('/auth/google/callback',
2323
passport.authenticate('google', {
2424
successReturnToOrRedirect: config.serverurl + '/',
2525
failureRedirect: config.serverurl + '/'

0 commit comments

Comments
 (0)