koa-passport-example icon indicating copy to clipboard operation
koa-passport-example copied to clipboard

Issue with "passport-google-auth"

Open YE-J-LEE opened this issue 4 years ago • 0 comments

If you got at least one of below things when making google sign in...

1. Failed to retrieve user profile Legacy People API has not been used in project... (in console) 2. Failed to obtain access token invalid_grant... (in console) 3. Internal server error (on browser)

I recommend you change dependency module "passport-google-auth" to "passport-google-oauth". Then modify parts that the module used like this. const GoogleStrategy = require("passport-google-oauth").OAuth2Strategy; and follow here http://www.passportjs.org/docs/google/

YE-J-LEE avatar Mar 23 '20 02:03 YE-J-LEE