schnack
schnack copied to clipboard
Google Auth: Legacy People Api can't be re-enabled
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.
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.
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')