EXAMPLE: Firebase with SignInWithApple on Unity #140
bhupiister
started this conversation in
Show and tell
Replies: 1 comment
-
Yeah, I guess one side effect from the authorization code being null after the first time is that the example is no longer valid and should probably be updated. However the identity token should never be null AFAIK, so only a null check on the authorization code should be required. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I came around same issue. Authorization code was null when using
QuickLogin
after usingLoginWithAppleId
.I was using it to authenticate firebase and luckily
Firebase
is ok withAuthorizationCode
beingnull
.Firebase.Auth.Credential credential = Firebase.Auth.OAuthProvider.GetCredential("apple.com", appleIdToken, rawNonce, null);
Firebase GetCredential DocumentationAuthorizationCode will only be passed once, as @lupidan said.
@lupidan I would suggest you to modify your firebase example with unity and make 4th parameter of GetCredential as null.
I'll leave a code for anyone wanting help on linking firebase with Apple ID
Spoiler: I am making a guest account first and then linking it with the Apple ID(Firebase) because of my game logic. You can use
SignInWithCredentialAsync instead of
LinkAndRetrieveDataWithCredentialAsync
Beta Was this translation helpful? Give feedback.
All reactions