google api - Retrieve User email using GTM OAuth2 for iOS -
i have implemented authentication using gtm oauth 2 library. want have email id of user. how should proceed. know have call in here :-
- (void)viewcontroller:(gtmoauth2viewcontrollertouch *)viewcontroller finishedwithauth:(gtmoauth2authentication *)auth error:(nserror *)error { if (error != nil) { nslog(@"sign in error : %@", error.description); // authentication failed } else { // authentication succeeded } }
when signing in google services gtm-oauth2, user's email address available after sign-in in auth object's useremail property.
Comments
Post a Comment