<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASAccountAuthenticationModificationExtensionContext/getSignInWithAppleUpgradeAuthorization(state:nonce:completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASAccountAuthenticationModificationExtensionContext(im)getSignInWithAppleUpgradeAuthorizationWithState:nonce:completionHandler:"
  },
  "title" : "getSignInWithAppleUpgradeAuthorization(state:nonce:completionHandler:)"
}
-->

# getSignInWithAppleUpgradeAuthorization(state:nonce:completionHandler:)

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

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

## 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 <doc://com.apple.documentation/documentation/signinwithapple/authenticating-users-with-sign-in-with-apple> and [Get the most out of Sign in with Apple](https://developer.apple.com/videos/play/wwdc2020/10173/).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)