-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
OAuth2, v3 (userinfo) #1529
Comments
why exactly the some details https://developers.google.com/identity/protocols/OpenIDConnect#validatinganidtoken |
Google People API looks suitable to resolve this issue {scope: ['email', 'profile']} google.people({version: 'v1', auth}).people.get({resourceName: 'people/me',
personFields: 'emailAddresses'})) |
@tugrul, thanks, man. Work for me. |
@stokito I am getting |
Seems like there's a solution, feel free to reopen if needed! |
With the recent Google+ deprecation, the new approach to getting user info (for instance, as done in jaredhanson/passport-google-oauth2#51) seems to be to use the
https://www.googleapis.com/oauth2/v3/userinfo
endpoint. Whilev2
also works for now, but it'd be great to have support for this endpoint here (including TS definitions) and in https://developers.google.com/apis-explorer/.See also #490, which was created 3 years ago back when (I'm guessing) that API weren't released.
The text was updated successfully, but these errors were encountered: