🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

expo-local-authentication

Package Overview
Dependencies
Maintainers
31
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-local-authentication

Provides an API for FaceID and TouchID (iOS) or the Fingerprint API (Android) to authenticate the user with a face or fingerprint scan.

16.0.4
latest
Source
npm
Version published
Weekly downloads
155K
0.63%
Maintainers
31
Weekly downloads
 
Created

What is expo-local-authentication?

The expo-local-authentication package provides an API for authenticating users using biometric methods such as fingerprint, facial recognition, or iris recognition on devices that support these features. It is part of the Expo ecosystem, which is designed to work seamlessly with React Native applications.

What are expo-local-authentication's main functionalities?

Check if hardware supports local authentication

This feature allows you to check if the device has the necessary hardware to support local authentication methods like fingerprint or facial recognition.

import * as LocalAuthentication from 'expo-local-authentication';

async function checkHardware() {
  const hasHardware = await LocalAuthentication.hasHardwareAsync();
  console.log('Hardware available:', hasHardware);
}

Check if biometrics are enrolled

This feature checks if the user has enrolled any biometric data (e.g., fingerprints or face) on their device.

import * as LocalAuthentication from 'expo-local-authentication';

async function checkBiometrics() {
  const isEnrolled = await LocalAuthentication.isEnrolledAsync();
  console.log('Biometrics enrolled:', isEnrolled);
}

Authenticate using biometrics

This feature initiates the biometric authentication process, prompting the user to authenticate using their enrolled biometric data.

import * as LocalAuthentication from 'expo-local-authentication';

async function authenticate() {
  const result = await LocalAuthentication.authenticateAsync();
  console.log('Authentication result:', result);
}

Other packages similar to expo-local-authentication

Keywords

react-native

FAQs

Package last updated on 30 Apr 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts