I'm a bit of confused about documentation and what's in the variable description in sign up with Apple. Let's say we have an scenario:
- User
Sign in with Appleusing fake/generated email address. - User switching the devices or using different device with my app.
- He's doing
Sign in with Applebut with real email address.
Question: How to know that this is the same user in my database?
The docs linked above suggest that user in ASAuthorizationAppleIDCredential object is the answer I'm looking for:
var user: String
An identifier associated with the authenticated user.
But also Xcode displays this in variable description:
/** @abstract An opaque user ID associated with the AppleID used for the sign in. This identifier will be stable across the 'developer team', it can later be used as an input to @see ASAuthorizationRequest to request user contact information.
The identifier will remain stable as long as the user is connected with the requesting client. The value may change upon user disconnecting from the identity provider. */
open var user: String { get }
What actualy that means in Sign in with Apple this as long as the user is connected with the requesting client. From that description I'm not sure if the user can deregister somehow or change this value or maybe this will happen in device-switch case?
What have I tried so far...
I've made a test in device and simulator and user value remain the same in dev environment but not sure how it's bahave IRL...
