<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LocalAuthentication",
  "identifier" : "/documentation/LocalAuthentication/LAError-swift.struct/Code",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Local Authentication"
    ],
    "preciseIdentifier" : "c:@E@LAError"
  },
  "title" : "LAError.Code"
}
-->

# LAError.Code

Errors issued by the LocalAuthentication framework.

```
enum Code
```

## Topics

### Cancellation

[`LAError.Code.appCancel`](/documentation/LocalAuthentication/LAError-swift.struct/Code/appCancel)

The app canceled authentication.

[`LAError.Code.systemCancel`](/documentation/LocalAuthentication/LAError-swift.struct/Code/systemCancel)

The system canceled authentication.

[`LAError.Code.userCancel`](/documentation/LocalAuthentication/LAError-swift.struct/Code/userCancel)

The user tapped the cancel button in the authentication dialog.

### Biometry failure

[`LAError.Code.biometryDisconnected`](/documentation/LocalAuthentication/LAError-swift.struct/Code/biometryDisconnected)

The device supports biometry only using a removable accessory, but the paired accessory isn’t connected.

[`biometryLockout`](/documentation/LocalAuthentication/LAError-swift.struct/Code/biometryLockout)

Biometry is locked because there were too many failed attempts.

[`LAErrorBiometryLockout`](/documentation/LocalAuthentication/LAError-c.enum/LAErrorBiometryLockout)

Biometry is locked because there were too many failed attempts.

[`biometryNotAvailable`](/documentation/LocalAuthentication/LAError-swift.struct/Code/biometryNotAvailable)

Biometry is not available on the device.

[`LAErrorBiometryNotAvailable`](/documentation/LocalAuthentication/LAError-c.enum/LAErrorBiometryNotAvailable)

Biometry is not available on the device.

[`biometryNotEnrolled`](/documentation/LocalAuthentication/LAError-swift.struct/Code/biometryNotEnrolled)

The user has no enrolled biometric identities.

[`LAErrorBiometryNotEnrolled`](/documentation/LocalAuthentication/LAError-c.enum/LAErrorBiometryNotEnrolled)

The user has no enrolled biometric identities.

[`LAError.Code.biometryNotPaired`](/documentation/LocalAuthentication/LAError-swift.struct/Code/biometryNotPaired)

The device supports biometry only using a removable accessory, but no accessory is paired.

[`LAError.Code.touchIDLockout`](/documentation/LocalAuthentication/LAError-swift.struct/Code/touchIDLockout)

Touch ID is locked because there were too many failed attempts.

[`LAError.Code.touchIDNotAvailable`](/documentation/LocalAuthentication/LAError-swift.struct/Code/touchIDNotAvailable)

Touch ID is not available on the device.

[`LAError.Code.touchIDNotEnrolled`](/documentation/LocalAuthentication/LAError-swift.struct/Code/touchIDNotEnrolled)

The user has no enrolled Touch ID fingers.

### Other errors

[`LAError.Code.authenticationFailed`](/documentation/LocalAuthentication/LAError-swift.struct/Code/authenticationFailed)

The user failed to provide valid credentials.

[`LAError.Code.invalidContext`](/documentation/LocalAuthentication/LAError-swift.struct/Code/invalidContext)

The context was previously invalidated.

[`LAError.Code.invalidDimensions`](/documentation/LocalAuthentication/LAError-swift.struct/Code/invalidDimensions)

[`LAError.Code.notInteractive`](/documentation/LocalAuthentication/LAError-swift.struct/Code/notInteractive)

Displaying the required authentication user interface is forbidden.

[`LAError.Code.passcodeNotSet`](/documentation/LocalAuthentication/LAError-swift.struct/Code/passcodeNotSet)

A passcode isn’t set on the device.

[`LAError.Code.userFallback`](/documentation/LocalAuthentication/LAError-swift.struct/Code/userFallback)

The user tapped the fallback button in the authentication dialog, but no fallback is available for the authentication policy.

[`LAError.Code.watchNotAvailable`](/documentation/LocalAuthentication/LAError-swift.struct/Code/watchNotAvailable)

An attempt to authenticate with Apple Watch failed.

### Supporting Constants

[`kLAErrorDomain`](/documentation/LocalAuthentication/kLAErrorDomain)

The error domain used by LocalAuthentication.

[`kLAErrorAppCancel`](/documentation/LocalAuthentication/kLAErrorAppCancel)

The app canceled authentication.

[`kLAErrorSystemCancel`](/documentation/LocalAuthentication/kLAErrorSystemCancel)

The system canceled authentication.

[`kLAErrorUserCancel`](/documentation/LocalAuthentication/kLAErrorUserCancel)

The user tapped the cancel button in the authentication dialog.

[`kLAErrorBiometryDisconnected`](/documentation/LocalAuthentication/kLAErrorBiometryDisconnected)

The device supports biometry only using a removable accessory, but the paired accessory isn’t connected.

[`kLAErrorBiometryLockout`](/documentation/LocalAuthentication/kLAErrorBiometryLockout)

Biometry is locked because there were too many failed attempts.

[`kLAErrorBiometryNotAvailable`](/documentation/LocalAuthentication/kLAErrorBiometryNotAvailable)

Biometry is not available on the device.

[`kLAErrorBiometryNotEnrolled`](/documentation/LocalAuthentication/kLAErrorBiometryNotEnrolled)

The user has no enrolled biometric identities.

[`kLAErrorBiometryNotPaired`](/documentation/LocalAuthentication/kLAErrorBiometryNotPaired)

The device supports biometry only using a removable accessory, but no accessory is paired.

[`kLAErrorTouchIDLockout`](/documentation/LocalAuthentication/kLAErrorTouchIDLockout)

Touch ID is locked because there were too many failed attempts.

[`kLAErrorTouchIDNotAvailable`](/documentation/LocalAuthentication/kLAErrorTouchIDNotAvailable)

Touch ID is not available on the device.

[`kLAErrorTouchIDNotEnrolled`](/documentation/LocalAuthentication/kLAErrorTouchIDNotEnrolled)

The user has no enrolled Touch ID fingers.

[`kLAErrorAuthenticationFailed`](/documentation/LocalAuthentication/kLAErrorAuthenticationFailed)

The user failed to provide valid credentials.

[`kLAErrorInvalidContext`](/documentation/LocalAuthentication/kLAErrorInvalidContext)

The context was previously invalidated.

[`kLAErrorInvalidDimensions`](/documentation/LocalAuthentication/kLAErrorInvalidDimensions)

[`kLAErrorNotInteractive`](/documentation/LocalAuthentication/kLAErrorNotInteractive)

Displaying the required authentication user interface is forbidden.

[`kLAErrorPasscodeNotSet`](/documentation/LocalAuthentication/kLAErrorPasscodeNotSet)

A passcode isn’t set on the device.

[`kLAErrorUserFallback`](/documentation/LocalAuthentication/kLAErrorUserFallback)

The user tapped the fallback button in the authentication dialog, but no fallback is available for the authentication policy.

[`kLAErrorWatchNotAvailable`](/documentation/LocalAuthentication/kLAErrorWatchNotAvailable)

An attempt to authenticate with Apple Watch failed.



---

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)