0
votes

I am attempting to use Google's OAuth services for iOS and am passing the following scopes into the auth mechanism:

As far as I can tell the login is working correctly (I am prompted for my Google credentials); I can parse out my email from the GTMOAuth2Authentication object, but my question is, how do I get the data from "userinfo.profile", i.e., Name, Gender, etc.

Thanks

1

1 Answers

3
votes

You may use the access token to acquire the user's basic profile information by calling the UserInfo endpoint.

See https://developers.google.com/accounts/docs/OAuth2Login#userinfocall