Skip to content
R

react-native-local-auth

React Native local authentication with touch id or passcode

by spwilkoFree

#1219in UI Libraries
0In stores

Description

react-native-local-auth lets a React Native app ask the user to authenticate with Touch ID, falling back to the device passcode when Touch I…

Highlights

  • Touch ID with passcode fallback
  • hasTouchID() support check
  • Documented error codes for failed attempts
  • Android linking steps in the README

Ratings & Reviews

No ratings yet

Be the first to rate react-native-local-auth.

People also visit

R

react-native-touch-id

React Native authentication with the native Touch ID popup

UI Libraries
Launch
R

react-native-fingerprint-scanner

React Native Biometrics Scanner for Android and iOS

UI Libraries
Launch
R

react-native-passcode-status

check if device-level passcode is supported/enabled/disabled

UI Libraries
Launch
R

React Native Sensitive Info

React Native secure storage, rebuilt

Utilities
Launch
R

react-native-signature-capture

Lets users sign their signatures

UI Libraries
Launch
R

react-native-localization

Simple module to localize the React Native interface

UI Libraries
Launch

react-native-local-auth FAQ

What does react-native-local-auth do?

It asks the user to unlock with Touch ID and falls back to the device passcode when Touch ID is not available or not enrolled.

How do I check whether Touch ID is available?

Call hasTouchID(), which returns a promise. The usage section of the README documents it.

What errors can authentication return?

The README lists codes such as LAErrorAuthenticationFailed, LAErrorUserCancel and LAErrorUserFallback, each with a short explanation of why authentication did not succeed.

How do I install it on Android?

Follow the linking steps in the README: add the package to MainActivity, add the lines to android/settings.gradle, and add the dependency to android/app/build.gradle.

Where does the code come from?

Most of it comes from react-native-touch-id. The authors split the passcode fallback out into this package, as the README explains.

What are the best react-native-local-auth alternatives?

Popular alternatives to react-native-local-auth include react-native-touch-id, react-native-fingerprint-scanner and react-native-passcode-status. See all react-native-local-auth alternatives

Developer Stuff

Badges