---
title: Local Authentication
framework: Local Authentication
role: collection
role_heading: Framework
platforms: [iOS 8.0+, iPadOS 8.0+, Mac Catalyst 13.0+, macOS 10.10+, visionOS 1.0+, watchOS 9.0+]
path: localauthentication
---

# Local Authentication

Authenticate users biometrically or with a passphrase they already know.

## Overview

Overview Many users rely on biometric authentication like Face ID, Touch ID, or Optic ID to enable secure, effortless access to their devices. As a fallback option, and for devices without biometry, a passcode or password serves a similar purpose. Use the LocalAuthentication framework to leverage these mechanisms in your app and extend authentication procedures your app already implements.

To maximize security, your app never gains access to any of the underlying authentication data. You can’t access any fingerprint images, for example. The Secure Enclave, a hardware-based security processor isolated from the rest of the system, manages this data out of reach even of the operating system. Instead, you specify a particular policy and provide messaging that tells the user why you want them to authenticate. The framework then coordinates with the Secure Enclave to carry out the operation. Afterward, you receive only a Boolean result indicating authentication success or failure.

## Topics

### Essentials

- [Logging a User into Your App with Face ID or Touch ID](localauthentication/logging-a-user-into-your-app-with-face-id-or-touch-id.md)
- [Accessing Keychain Items with Face ID or Touch ID](localauthentication/accessing-keychain-items-with-face-id-or-touch-id.md)

### Authentication and access

- [LARight](localauthentication/laright.md)
- [LARight.State](localauthentication/laright/state-swift.enum.md)
- [LAContext](localauthentication/lacontext.md)

### Persistence

- [LARightStore](localauthentication/larightstore.md)
- [LAPersistedRight](localauthentication/lapersistedright.md)
- [LASecret](localauthentication/lasecret.md)

### Key pairs

- [LAPublicKey](localauthentication/lapublickey.md)
- [LAPrivateKey](localauthentication/laprivatekey.md)

### Requirements

- [LAAuthenticationRequirement](localauthentication/laauthenticationrequirement.md)
- [LABiometryFallbackRequirement](localauthentication/labiometryfallbackrequirement.md)

### Authentication views

- [LocalAuthenticationView](localauthentication/localauthenticationview.md)

### Errors

- [LAError](localauthentication/laerror-swift.struct.md)
- [LAError.Code](localauthentication/laerror-swift.struct/code.md)
- [LAErrorDomain](localauthentication/laerrordomain.md)

### Reference

- [LocalAuthentication Constants](localauthentication/localauthentication-constants.md)

### Classes

- [LADomainState](localauthentication/ladomainstate.md)
- [LADomainStateBiometry](localauthentication/ladomainstatebiometry.md)
- [LADomainStateCompanion](localauthentication/ladomainstatecompanion.md)
- [LAEnvironment](localauthentication/laenvironment.md)

### Variables

- [kLAAccessControlOperationCreateItem](localauthentication/klaaccesscontroloperationcreateitem.md)
- [kLAAccessControlOperationCreateKey](localauthentication/klaaccesscontroloperationcreatekey.md)
- [kLAAccessControlOperationUseItem](localauthentication/klaaccesscontroloperationuseitem.md)
- [kLAAccessControlOperationUseKeyDecrypt](localauthentication/klaaccesscontroloperationusekeydecrypt.md)
- [kLAAccessControlOperationUseKeyKeyExchange](localauthentication/klaaccesscontroloperationusekeykeyexchange.md)
- [kLAAccessControlOperationUseKeySign](localauthentication/klaaccesscontroloperationusekeysign.md)
- [kLACompanionTypeMac](localauthentication/klacompaniontypemac.md)
- [kLACompanionTypeNone](localauthentication/klacompaniontypenone.md)
- [kLACompanionTypeVision](localauthentication/klacompaniontypevision.md)
- [kLACompanionTypeWatch](localauthentication/klacompaniontypewatch.md)
- [kLAErrorCompanionNotAvailable](localauthentication/klaerrorcompanionnotavailable.md)
- [kLAPolicyDeviceOwnerAuthenticationWithBiometricsOrCompanion](localauthentication/klapolicydeviceownerauthenticationwithbiometricsorcompanion.md)
- [kLAPolicyDeviceOwnerAuthenticationWithCompanion](localauthentication/klapolicydeviceownerauthenticationwithcompanion.md)

### Enumerations

- [LACompanionType](localauthentication/lacompaniontype.md)
