Skip to content

Commit

Permalink
feat(auth, ios): automatically save the Apple Sign In display name (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyokone committed Mar 27, 2023
1 parent 419ad22 commit 257f1ff
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -588,10 +588,12 @@ - (void)authorizationController:(ASAuthorizationController *)controller
NSLog(@"Unable to serialize id token from data: %@", appleIDCredential.identityToken);
}

// Initialize a Firebase credential.
FIROAuthCredential *credential = [FIROAuthProvider credentialWithProviderID:@"apple.com"
IDToken:idToken
rawNonce:rawNonce];
// Initialize a Firebase credential, including the user's full name.
FIROAuthCredential *credential =
[FIROAuthProvider appleCredentialWithIDToken:idToken
rawNonce:rawNonce
fullName:appleIDCredential.fullName];

if (self.isReauthenticatingWithApple == YES) {
self.isReauthenticatingWithApple = NO;
[[FIRAuth.auth currentUser]
Expand Down

0 comments on commit 257f1ff

Please sign in to comment.