Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Auth: Legacy People Api can't be re-enabled #106

Open
javimosch opened this issue Feb 13, 2020 · 2 comments
Open

Google Auth: Legacy People Api can't be re-enabled #106

javimosch opened this issue Feb 13, 2020 · 2 comments

Comments

@javimosch
Copy link

It seems the OAuth method for google uses Legacy People API from Google, which is not deprecated and cannot be re-enabled (if disabled) in google projects.

@George3d6
Copy link
Member

I've encountered this same issue and it's rather annoying... arguably Google's fault for being horrible, but still would be good to mention in the docs if this can be made to work with Google and that it can't if it's unable to work with it.

@George3d6
Copy link
Member

Found a fix for this :)

npm install passport-google-oauth20@2 --save

Then edit the GoogleStrategy variable in src/auth.js by changing the import to:

const GoogleStrategy = require('passport-google-oauth20')

that should do it (if it doesn't, maybe also change the google.plus url down bellow to just the string 'profile')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants