<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecureElementCredential",
  "identifier" : "/documentation/SecureElementCredential/CredentialSession/ErrorCode/userCanceledAuthorization",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "SecureElementCredential"
    ],
    "preciseIdentifier" : "s:23SecureElementCredential0C7SessionC9ErrorCodeO25userCanceledAuthorizationyA2EmF"
  },
  "title" : "CredentialSession.ErrorCode.userCanceledAuthorization"
}
-->

# CredentialSession.ErrorCode.userCanceledAuthorization

The person using the app dismissed the authorization sheet.

```
case userCanceledAuthorization
```

## Discussion

In this scenario, the credential session’s underlying state transitions to [`CredentialSession.State.management`](/documentation/SecureElementCredential/CredentialSession/State-swift.enum/management).

---

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)