Monday, July 07, 2014

Passport Error with Google: Error: invalid_client

Nodejs module passport allows loggin into your app with OAuth2 for Google. But I kept getting an error of "invalid_client".

Google eror message screen
The solution was rather simple: check for typo in clientID in the passport.use(new GoogleStrategy({

In my app there was an extra number at the start of the clientID string.

1 comment:

Unknown said...

this is the best page i came to know about passport agents in hyderabad