<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASExtensionError/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:@E@ASExtensionErrorCode"
  },
  "title" : "ASExtensionError.Code"
}
-->

# ASExtensionError.Code

The codes for a credential provider extension error.

```
enum Code
```

## Topics

### Codes

[`ASExtensionError.Code.credentialIdentityNotFound`](/documentation/AuthenticationServices/ASExtensionError/Code/credentialIdentityNotFound)

The credential identity was not found.

[`ASExtensionError.Code.failed`](/documentation/AuthenticationServices/ASExtensionError/Code/failed)

The operation failed.

[`ASExtensionError.Code.userCanceled`](/documentation/AuthenticationServices/ASExtensionError/Code/userCanceled)

The user canceled the operation.

[`ASExtensionError.Code.userInteractionRequired`](/documentation/AuthenticationServices/ASExtensionError/Code/userInteractionRequired)

User interaction is required.



---

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)