StephenGrider / FullstackReactCode

Companion repo to https://www.udemy.com/node-with-react-fullstack-web-development
1.39k stars 1.17k forks source link

Why does the profile google OAuth logs twice? #82

Closed hilmiwicak closed 3 years ago

hilmiwicak commented 3 years ago

Currently I'm on the "Adding MongoDB" course, "saving model instances". I'm wondering why does every time I open the route localhost:5000/auth/google, it saves 2 of the same profile? And when I try to console.log it, it's basically logs 2 profile. I don't know what I'm doing wrong. Is it because I configure wrong in "console.cloud.google.com"?

hilmiwicak commented 3 years ago

It seems that when I use the same email I put on test user in "console.cloud.google.com", it logs twice