SelfLender / react-native-biometrics

React Native module for iOS and Android biometrics
MIT License
663 stars 224 forks source link

Use credentials like PIN, pattern, or password for devices doesn’t support biometrics #279

Open tahahaz1374 opened 8 months ago

tahahaz1374 commented 8 months ago

Hello there I am working on a React Native app (with react native CLI) to implement authentication. For Android, implementing Biometric authentication is not bad, but since some of devices don't support biometrics, we have to implement secure sign in for them as well. So, how to authenticate in the app using lock screen credentials like PIN, pattern, or password for devices that don't support Biometrics?

bendspoons commented 8 months ago

Dunno if that helps, but i use this as a Alternative/Fallback, but i did adjust it to my needs

https://www.npmjs.com/package/@anhnch/react-native-pincode

tahahaz1374 commented 2 months ago

Dunno if that helps, but i use this as a Alternative/Fallback, but i did adjust it to my needs

https://www.npmjs.com/package/@anhnch/react-native-pincode

It's not a good idea because when I use this package, I have to store this PIN somewhere.