苹果登录:如何计算用户ID?

apple sign in : how is calculated the user id?

returns苹果登录的用户id值是如何计算出来的?看起来像 000011.9134c48e58484ad52299cb393541aa78.1781。它是一个完全随机的数字吗?这个数字是每个应用程序唯一的吗?

Apple 尚未提供有关如何计算用户标识符的任何信息。鉴于它保证在数百万用户中是唯一的,所以它不可能是纯随机的。但是,它的计算可能存在一些随机性。

苹果states

The user identifier has the following characteristics:

  • Consists of a unique, stable string, and is intended for use as the primary identifier of the user.

  • Uses the same identifier across all of the apps in the development team associated with your Apple Developer account.

  • Differs for the same user across different development teams, and can’t be used to identify a user across development teams.

  • Doesn’t change if the user stops using Sign in with Apple with your app, and later starts using it again.