> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Errors

> Biometric authentication error codes and descriptions for the Stytch React Native SDK

## Errors

## biometrics\_sensor\_error

There was an error with the biometric sensor on the device. This usually means that the biometric sensor is currently unavailable for use.

## device\_credentials\_not\_allowed

This means that allowDeviceCredentials was set to false in register(), but allowDeviceCredentials was set to true in authenticate(). Consider changing these parameters to be the same.

## device\_hardware\_error

The device's hardware does not support biometrics. This might be because the hardware is unavailable for use, or there is a security vulnerability with the hardware.

## internal\_error

An internal error has occurred. Please contact Stytch if this occurs.

## key\_invalidated

The biometrics enrollment on the device has changed, so biometric authentication cannot use the current registration. Try deleting the registration and authenticating again.

## keystore\_unavailable

The Android keystore is unavailable on the device. Learn more about the Android Keystore [here](/docs/api-reference/consumer/mobile-sdks/react-native/resources/android-keystore-considerations).

## no\_biometrics\_enrolled

No biometric factor is enrolled on the device. Consider encouraging the user to enroll in biometrics on their device.

## no\_biometrics\_registration

No valid biometrics registration exists on the device. Please use the register method to create a new biometric registration.

## session\_expired

There is currently no valid session token. Consider encouraging the user to log in.

## user\_cancellation

The user canceled the biometric prompt. Consider providing other methods of authentication, and a way for the user to return to the biometric prompt.

## user\_locked\_out

The user has been locked out from authentication using biometrics due to too many failed attempts. Consider providing other methods of authentication.
