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

Profile data? #17

Open
hmontes opened this issue May 10, 2017 · 3 comments
Open

Profile data? #17

hmontes opened this issue May 10, 2017 · 3 comments

Comments

@hmontes
Copy link

hmontes commented May 10, 2017

How can obtain the profile data? (First name, email, etc).

Thanks

@jmreyes
Copy link
Owner

jmreyes commented May 16, 2017

Hi, you need to add the required scope for this when requesting the Google ID token (profile scope, if I'm not mistaken), and then you can get this information from the parsedToken you get from the passport callback. This way users have to explicitly accept that they're sharing their profile info with you.

@hmontes
Copy link
Author

hmontes commented May 16, 2017

Thanks! But. Where can i add the scopes? (In the doc you talk about certificates. Not scopes)

@jmreyes
Copy link
Owner

jmreyes commented May 16, 2017

Well, that depends on your use case, you have an example for Android/iOS Google Sign-In linked in the readme (this one), where you can see where the scope is set.

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

2 participants