Contents

getSignInWithAppleUpgradeAuthorization(state:nonce:completionHandler:)

Retrieves the user’s current Sign in with Apple authorization credentials.

Declaration

func getSignInWithAppleUpgradeAuthorization(state: String?, nonce: String?, completionHandler: @escaping  @Sendable (ASAuthorizationAppleIDCredential?, (any Error)?) -> Void)
func requestSignInWithAppleUpgradeAuthorization(state: String?, nonce: String?) async throws -> ASAuthorizationAppleIDCredential

Parameters

  • state:

    A string that contains a random value for verifying the Sign in with Apple credentials.

  • nonce:

    A string that contains a random value for verifying the Sign in with Apple credentials.

  • completionHandler:

    A closure that takes a parameter for the user’s current Sign in with Apple credentials, and an error if one occurs while retrieving them.

Mentioned in

Discussion

Calling this method causes the system to present the Sign in with Apple upgrade interface, dismissing any currently presented interface.

For more information about the state and nonce parameters, see Authenticating users with Sign in with Apple and Get the most out of Sign in with Apple.

See Also

Handling Requests