---
title: "getSignInWithAppleUpgradeAuthorization(state:nonce:completionHandler:)"
framework: authenticationservices
role: symbol
role_heading: Instance Method
path: "authenticationservices/asaccountauthenticationmodificationextensioncontext/getsigninwithappleupgradeauthorization(state:nonce:completionhandler:)"
---

# getSignInWithAppleUpgradeAuthorization(state:nonce:completionHandler:)

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

## Declaration

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

```swift
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

Upgrading Account Security With an Account Authentication Modification Extension

## Discussion

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

- [completeUpgradeToSignInWithApple(userInfo:)](authenticationservices/asaccountauthenticationmodificationextensioncontext/completeupgradetosigninwithapple(userinfo:).md)
- [completeChangePasswordRequest(updatedCredential:userInfo:)](authenticationservices/asaccountauthenticationmodificationextensioncontext/completechangepasswordrequest(updatedcredential:userinfo:).md)
- [cancelRequest(withError:)](authenticationservices/asaccountauthenticationmodificationextensioncontext/cancelrequest(witherror:).md)
- [ASExtensionLocalizedFailureReasonErrorKey](authenticationservices/asextensionlocalizedfailurereasonerrorkey.md)
