Apple Sign In: Is 'user' credential returned by Apple permanent?

Deadly 提交于 2019-12-04 16:48:30

The user identifier property of ASAuthorizationAppleIDCredential is a stable unique identifier between an Apple ID and Developer Team. Application revocations will not affect the stability of the user ID. This also means that among a developer team's set of applications the user ID will be the same, making it optimal for synchronization among a developer's apps.


Edit for App Transfers:

Transferring an application from one developer team to another will indeed cause the user identifier to change, since it's scoped as a stable user identifier per team.

The best practice when transferring an app that uses Sign in with Apple will be to use an Apple API endpoint to map the user IDs for the old team with user IDs for the new team. If for some reason a developer does not use the API endpoint, AuthenticationServices supports application transfers by accepting the old user ID in an ASAuthorizationAppleIDRequest and the new user ID will be returned.

Generally, AuthenticationServices will do the right thing. However, if a user deletes an app associated with Team A (and used Sign in with Apple for said app), then reinstalls the same app now associated with Team B, the only way to associate the two user IDs will be by using the API endpoint.


Source: I'm an engineer on the team responsible for Sign in With Apple.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!