SelfLender / react-native-biometrics

React Native module for iOS and Android biometrics
MIT License
664 stars 229 forks source link

Enhancement: Improve Accuracy of Biometrics Availability Check #252

Open Moussaddak opened 1 year ago

Moussaddak commented 1 year ago

Hi everyone,

The previous implementation of the biometrics availability check was inaccurate. It returned available = false even when the device supported biometrics, but the user had not enrolled their fingerprint or face ID. This change returns available = true and the error BIOMETRIC_ERROR_NONE_ENROLLED when the device supports biometrics, but the user has not enrolled their fingerprint or face ID. This allows this library to reliably determine biometrics availability, avoiding the need for external alternatives.