Skip to content

Commit

Permalink
feat(authentication): pass fullName (Apple) to Firebase iOS SDK (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz authored Apr 22, 2023
1 parent 41cf39f commit 6951f3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/three-lions-mix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@capacitor-firebase/authentication': minor
---

feat(ios): pass `fullName` (Apple) to Firebase iOS SDK
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ extension AppleAuthProviderHandler: ASAuthorizationControllerDelegate, ASAuthori
displayName = "\(givenName) \(familyName)"
}
}
let credential = OAuthProvider.credential(withProviderID: ProviderId.apple, idToken: idTokenString, rawNonce: nonce)
let credential = OAuthProvider.appleCredential(withIDToken: idTokenString,
rawNonce: nonce,
fullName: appleIDCredential.fullName)
guard let isLink = self.isLink else {
return
}
Expand Down

0 comments on commit 6951f3b

Please sign in to comment.