naoufal / react-native-touch-id

React Native authentication with the native Touch ID popup.
https://www.npmjs.com/package/react-native-touch-id
1.47k stars 477 forks source link

Passcode auth #250

Open thanglyphan opened 4 years ago

thanglyphan commented 4 years ago

How can I authenticate the local user with passcode? I would like to have it as an fallback option when faceid/touchid fails. Does anyone know?

KristineTrona commented 4 years ago

@thanglyphan I don't this it is possible with this package. I am using a fork of this outdated package https://www.npmjs.com/package/react-native-passcode-auth to authenticate with Passcode as a fallback for failed FaceID/TouchID attempts.

However, it would be very nice if this feature could be implemented in this package. Especially when using password as a fallback is not always possible - think about paswordless apps, where authentication is done via sms/email code or magic links.