<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Local Authentication"
    ],
    "preciseIdentifier" : "s:SC7LAErrorLeV"
  },
  "title" : "LAError"
}
-->

# LAError

Errors issued by the LocalAuthentication framework.

```
struct LAError
```

## Topics

### Error Characteristics

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

The error domain that the framework uses when issuing errors.

### Error Codes

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

The app canceled authentication.

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

The system canceled authentication.

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

The user tapped the cancel button in the authentication dialog.

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

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

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

Biometry is locked because there were too many failed attempts.

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

Biometry is not available on the device.

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

The user has no enrolled biometric identities.

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

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

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

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

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

Touch ID is not available on the device.

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

The user has no enrolled Touch ID fingers.

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

The user failed to provide valid credentials.

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

The context was previously invalidated.

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

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

Displaying the required authentication user interface is forbidden.

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

A passcode isn’t set on the device.

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

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

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

An attempt to authenticate with Apple Watch failed.

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

Errors issued by the LocalAuthentication framework.

### Comparing Errors



---

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)