Contents

getCredentialState(forUserID:completion:)

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

Declaration

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

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