---
title: ASAuthorizationError
framework: authenticationservices
role: symbol
role_heading: Structure
path: authenticationservices/asauthorizationerror-swift.struct
---

# ASAuthorizationError

Errors that can occur during authorization.

## Declaration

```swift
struct ASAuthorizationError
```

## Topics

### Getting the Properties

- [notInteractive](authenticationservices/asauthorizationerror-swift.struct/notinteractive.md)

### Error Domain

- [ASAuthorizationErrorDomain](authenticationservices/asauthorizationerrordomain.md)

### Error Codes

- [canceled](authenticationservices/asauthorizationerror-swift.struct/canceled.md)
- [failed](authenticationservices/asauthorizationerror-swift.struct/failed.md)
- [invalidResponse](authenticationservices/asauthorizationerror-swift.struct/invalidresponse.md)
- [notHandled](authenticationservices/asauthorizationerror-swift.struct/nothandled.md)
- [unknown](authenticationservices/asauthorizationerror-swift.struct/unknown.md)
- [credentialExport](authenticationservices/asauthorizationerror-swift.struct/credentialexport.md)
- [credentialImport](authenticationservices/asauthorizationerror-swift.struct/credentialimport.md)
- [ASAuthorizationError.Code](authenticationservices/asauthorizationerror-swift.struct/code.md)

### Type Properties

- [deviceNotConfiguredForPasskeyCreation](authenticationservices/asauthorizationerror-swift.struct/devicenotconfiguredforpasskeycreation.md)
- [errorDomain](authenticationservices/asauthorizationerror-swift.struct/errordomain.md)
- [matchedExcludedCredential](authenticationservices/asauthorizationerror-swift.struct/matchedexcludedcredential.md)
- [preferSignInWithApple](authenticationservices/asauthorizationerror-swift.struct/prefersigninwithapple.md)

## Relationships

### Conforms To

- [CustomNSError](foundation/customnserror.md)
- [Equatable](swift/equatable.md)
- [Error](swift/error.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Handling Authorization Errors

- [authorizationController(controller:didCompleteWithError:)](authenticationservices/asauthorizationcontrollerdelegate/authorizationcontroller(controller:didcompletewitherror:).md)
- [ASAuthorizationErrorDomain](authenticationservices/asauthorizationerrordomain.md)
