Instance Method

getCredentialState(forUserID:completion:)

Returns the credential state for the given user in a completion handler.

Declaration

func getCredentialState(forUserID userID: String, completion: @escaping (ASAuthorizationAppleIDProvider.CredentialState, Error?) -> Void)

Parameters

userID

An opaque string associated with the Apple ID that your app receives in the credential’s user property after performing a successful authentication request.

completion

A block the method calls to report the state and an optional error condition.

See Also

Getting State

enum ASAuthorizationAppleIDProvider.CredentialState

Possible values for the credential state of a user.