Skip to content

Conversation

bcalmac
Copy link

@bcalmac bcalmac commented Mar 28, 2020

The diff corresponds to the instructions from https://www.udemy.com/course/node-with-react-fullstack-web-development/learn/lecture/13890898#questions:

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

As it is now, if a new student tries to run the app, Google auth fails with:

GooglePlusAPIError: Legacy People API has not been used in project ************ before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project=************ then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
    at /Users/bcalmac/code-study/fullstack-stephen-grider/server/node_modules/passport-google-oauth20/lib/strategy.js:95:21
    at passBackControl (/Users/bcalmac/code-study/fullstack-stephen-grider/server/node_modules/oauth/lib/oauth2.js:132:9)
    at IncomingMessage.<anonymous> (/Users/bcalmac/code-study/fullstack-stephen-grider/server/node_modules/oauth/lib/oauth2.js:157:7)
    at IncomingMessage.emit (events.js:323:22)
    at endReadableNT (_stream_readable.js:1204:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)```

@bcalmac bcalmac changed the title Update passport-google-oauth20 for compatibility with the Googlle People API Update passport-google-oauth20 for compatibility with the Google People API Mar 28, 2020
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

Successfully merging this pull request may close these issues.

1 participant