Closed annibuliful closed 7 years ago
I had this same problem and it drove me insane for like an hour...
You are calling it like passport.use(new GoogleStrategy({}), function(){} ) but it should be: passport.use(new GoogleStrategy( {}, function(){} ) ) //Note where I moved the parenthesis
GoogleStrategy takes 2 arguments, the first is the object with the id/secret/url, and the 2nd is the function, and new GoogleStrategy is the only thing you pass into passportjs.use().
I fixed it by enabling Google+ API because It is important for authentication
@amp89 you basically saved me, was driving me crazy too!!!
I had this same problem and it drove me insane for like an hour...
You are calling it like passport.use(new GoogleStrategy({}), function(){} ) but it should be: passport.use(new GoogleStrategy( {}, function(){} ) ) //Note where I moved the parenthesis
GoogleStrategy takes 2 arguments, the first is the object with the id/secret/url, and the 2nd is the function, and new GoogleStrategy is the only thing you pass into passportjs.use().
Oh thank you sir. You are a saver
I had this same problem and it drove me insane for like an hour...
You are calling it like passport.use(new GoogleStrategy({}), function(){} ) but it should be: passport.use(new GoogleStrategy( {}, function(){} ) ) //Note where I moved the parenthesis
GoogleStrategy takes 2 arguments, the first is the object with the id/secret/url, and the 2nd is the function, and new GoogleStrategy is the only thing you pass into passportjs.use().
you are a savior
I had this same problem and it drove me insane for like an hour...
You are calling it like passport.use(new GoogleStrategy({}), function(){} ) but it should be: passport.use(new GoogleStrategy( {}, function(){} ) ) //Note where I moved the parenthesis
GoogleStrategy takes 2 arguments, the first is the object with the id/secret/url, and the 2nd is the function, and new GoogleStrategy is the only thing you pass into passportjs.use().
you saved me from wasting 1hr,thank you
You are my savior
I had this same problem and it drove me insane for like an hour...
You are calling it like passport.use(new GoogleStrategy({}), function(){} ) but it should be: passport.use(new GoogleStrategy( {}, function(){} ) ) //Note where I moved the parenthesis
GoogleStrategy takes 2 arguments, the first is the object with the id/secret/url, and the 2nd is the function, and new GoogleStrategy is the only thing you pass into passportjs.use().
Lord and saviour
I had this same problem and it drove me insane for like an hour...
You are calling it like passport.use(new GoogleStrategy({}), function(){} ) but it should be: passport.use(new GoogleStrategy( {}, function(){} ) ) //Note where I moved the parenthesis
GoogleStrategy takes 2 arguments, the first is the object with the id/secret/url, and the 2nd is the function, and new GoogleStrategy is the only thing you pass into passportjs.use().
You are my savior :))))
I had this same problem and it drove me insane for like an hour...
You are calling it like passport.use(new GoogleStrategy({}), function(){} ) but it should be: passport.use(new GoogleStrategy( {}, function(){} ) ) //Note where I moved the parenthesis
GoogleStrategy takes 2 arguments, the first is the object with the id/secret/url, and the 2nd is the function, and new GoogleStrategy is the only thing you pass into passportjs.use().
Thank You Very Much!!
Solution by amp89 worked
I had this same problem and it drove me insane for like an hour...
You are calling it like passport.use(new GoogleStrategy({}), function(){} ) but it should be: passport.use(new GoogleStrategy( {}, function(){} ) ) //Note where I moved the parenthesis
GoogleStrategy takes 2 arguments, the first is the object with the id/secret/url, and the 2nd is the function, and new GoogleStrategy is the only thing you pass into passportjs.use().
Amazing sir