I am able to successfully access the credential returned by Apple as part of it's new (WWDC '19 -- iOS 13) Sign In With Apple library.
The credential is accessed in this delegate method:
extension ViewController: ASAuthorizationControllerDelegate {
func authorizationController(controller: ASAuthorizationController, didCompleteWithAuthorization authorization: ASAuthorization) {
if let appleIDCredential = authorization.credential as? ASAuthorizationAppleIDCredential {
//here is credentials .
}
}
}
One then uses 'user' property to extract the user id:
credential.user
//returns, for example, '000046.20082df1df9a41b78cd1552979288e19.2346' dummy value
Is this 'user' property understood to be static / permanent for that specific AppleID (and perhaps that specific app)?
(I am accessing a sync API and would like to hardcode user credentials from that 44 character Apple 'user' credential.)