question

uri-1 avatar image
uri-1 asked

Apple Authentication

Hey everyone! I'm currently working on a project involving Apple's authentication system in Unity. I'm trying to figure out a way that users don't have to re-enter their Apple password upon subsequent logins and still getting the Apple identity token to Sign In with Apple for PlayFab. Are you just saving the identityToken on PlayerPrefs without encryption and using the Ignore expiration date for identity tokens in PlayFab?

Any insights or best practices on this would be greatly appreciated! Thanks in advance!

unity3dappleAuthentication
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

Since saving Apple password locally to automate the Apple login is not recommended. The only way for players to not have to re-enter their Apple password upon subsequent logins to PlayFab is to save the identity token on the client, but this identity token is not permanent even if you choose to ignore the expiration date for identity tokens, you will receive an NotAuthorized error if Apple rotates the signing key. In this case, users have to login to provide a fresh identity token. You may try to ask Apple about the frequency of key rotation, and then periodically let customers log in based on this frequency to get and save the identity token.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.