Skip to content

Commit

Permalink
Update MainViewController.m
Browse files Browse the repository at this point in the history
  • Loading branch information
ulukaya committed Dec 12, 2016
1 parent 63616f1 commit d185fb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions authentication/AuthenticationExample/MainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,12 @@ - (void)signIn:(GIDSignIn *)signIn
didSignInForUser:(GIDGoogleUser *)user
withError:(NSError *)error {
if (error == nil) {
// [START google_credential]
GIDAuthentication *authentication = user.authentication;
FIRAuthCredential *credential =
[FIRGoogleAuthProvider credentialWithIDToken:authentication.idToken
accessToken:authentication.accessToken];
// [END google_credential]
// [START_EXCLUDE]
[self firebaseLoginWithCredential:credential];
// [END_EXCLUDE]
Expand Down

0 comments on commit d185fb5

Please sign in to comment.