---
title: LAError.Code.invalidContext
framework: localauthentication
role: symbol
role_heading: Case
path: localauthentication/laerror-swift.struct/code/invalidcontext
---

# LAError.Code.invalidContext

The context was previously invalidated.

## Declaration

```swift
case invalidContext
```

## Discussion

Discussion You invalidate a context by calling its invalidate() method.

## See Also

### Other errors

- [LAError.Code.authenticationFailed](localauthentication/laerror-swift.struct/code/authenticationfailed.md)
- [LAError.Code.invalidDimensions](localauthentication/laerror-swift.struct/code/invaliddimensions.md)
- [LAError.Code.notInteractive](localauthentication/laerror-swift.struct/code/notinteractive.md)
- [LAError.Code.passcodeNotSet](localauthentication/laerror-swift.struct/code/passcodenotset.md)
- [LAError.Code.userFallback](localauthentication/laerror-swift.struct/code/userfallback.md)
- [LAError.Code.watchNotAvailable](localauthentication/laerror-swift.struct/code/watchnotavailable.md)
