<!--
{
  "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/invalidContext",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Local Authentication"
    ],
    "preciseIdentifier" : "c:@E@LAError@LAErrorInvalidContext"
  },
  "title" : "LAError.Code.invalidContext"
}
-->

# LAError.Code.invalidContext

The context was previously invalidated.

```
case invalidContext
```

## Discussion

You invalidate a context by calling its [`invalidate()`](/documentation/LocalAuthentication/LAContext/invalidate()) method.

---

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)