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

How to get name of the user #3

Open
isuryanarayanan opened this issue Jun 26, 2021 · 2 comments
Open

How to get name of the user #3

isuryanarayanan opened this issue Jun 26, 2021 · 2 comments

Comments

@isuryanarayanan
Copy link

Idk what scope gives me the username

@Nizzy94
Copy link

Nizzy94 commented Sep 30, 2021

console log the response in your function. it returns an object that contains the details. automatically, the package stores it as the string characters before the "@" symbol in the email. I think you'll have to call it directly from the database.

@yrx00go
Copy link

yrx00go commented Jun 14, 2022

you can get name by changing 'app.use(gAuthPlugin, { clientId: gauthClientId, scope: 'email', prompt: 'consent', fetch_basic_profile: false }) ' to 'app.use(gAuthPlugin, { clientId: gauthClientId})'. Please click https://developers.google.com/identity/sign-in/web/reference#gapiauth2clientconfig for details.

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

No branches or pull requests

3 participants