Profile information is now correctly retrieved when signing in via google auth

This commit is contained in:
Sahat Yalkabov
2013-11-30 01:55:38 -05:00
parent 6f97fb69b6
commit 0fcc76750f
2 changed files with 2 additions and 8 deletions

2
app.js
View File

@ -63,7 +63,7 @@ app.post('/contact', contact.postContact);
app.get('/auth/facebook', passport.authenticate('facebook', { scope: 'email' }));
app.get('/auth/facebook/callback', passport.authenticate('facebook', { successRedirect: '/', failureRedirect: '/login' }));
app.get('/auth/google', passport.authenticate('google', { scope: 'email' }));
app.get('/auth/google', passport.authenticate('google', { scope: 'profile email' }));
app.get('/auth/google/callback', passport.authenticate('google', { successRedirect: '/', failureRedirect: '/login' }));