Contents

LAContext

A mechanism for evaluating authentication policies and access controls.

Declaration

class LAContext

Overview

You use an authentication context to evaluate the user’s identity, either with biometrics like Touch ID or Face ID, or by supplying the device passcode. The context handles user interaction, and also interfaces to the Secure Enclave, the underlying hardware element that manages biometric data. You create and configure the context, and ask it to carry out the authentication. You then receive an asynchronous callback, which provides an indication of authentication success or failure, and an error instance that explains the reason for a failure, if any.

Topics

Checking availability

Evaluating authentication policies

Evaluating access controls

Customizing authentication prompts

Reusing device unlock state

Managing credentials

Invalidating the authentication context

Instance Properties

See Also

Authentication and access