DEV Community

loading...

Discussion on: Beginner's Guide to Google OAuth with Passport.js

Collapse
phyllis_yym profile image
Phyllis Yu Yu💫 Author

Hi Sarvagya, yes, there has to be googleId set up as a String in your user schema. It’s one of the prerequisites in this article. We don’t need to set up the field of gmail address in the schema for Google log-in to work. If you want your app to get access to users’ gmail address, you will need to specify it in the scope.

Forem Open with the Forem app