schnack icon indicating copy to clipboard operation
schnack copied to clipboard

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

Open javimosch opened this issue 5 years ago • 2 comments

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.

javimosch avatar Feb 13 '20 12:02 javimosch

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 avatar Apr 19 '20 18:04 George3d6

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')

George3d6 avatar Apr 25 '20 08:04 George3d6