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

Update passport-google-oauth20 for compatibility with the Google People API #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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