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

# LAError.Code.appCancel

The app canceled authentication.

```
case appCancel
```

## Discussion

You receive this error if you call the [`invalidate()`](/documentation/LocalAuthentication/LAContext/invalidate()) method while authentication is in process.

---

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)