Skip to content

Commit

Permalink
Fixed support for Passport Google with OAuth2
Browse files Browse the repository at this point in the history
  • Loading branch information
mrngoitall committed Oct 13, 2013
1 parent 13f03ec commit e9588db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/passport.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var mongoose = require('mongoose'),
TwitterStrategy = require('passport-twitter').Strategy,
FacebookStrategy = require('passport-facebook').Strategy,
GitHubStrategy = require('passport-github').Strategy,
GoogleStrategy = require('passport-google-oauth').Strategy,
GoogleStrategy = require('passport-google-oauth').OAuth2Strategy,
User = mongoose.model('User'),
config = require('./config');

Expand Down Expand Up @@ -143,8 +143,8 @@ module.exports = function(passport) {

//Use google strategy
passport.use(new GoogleStrategy({
consumerKey: config.google.clientID,
consumerSecret: config.google.clientSecret,
clientID: config.google.clientID,
clientSecret: config.google.clientSecret,
callbackURL: config.google.callbackURL
},
function(accessToken, refreshToken, profile, done) {
Expand Down

0 comments on commit e9588db

Please sign in to comment.