smallcase / react-native-simple-biometrics

simple interface to verify user authenticity
https://www.npmjs.com/package/react-native-simple-biometrics
MIT License
183 stars 16 forks source link

biometryType not available #3

Closed ndileep-dev closed 3 years ago

ndileep-dev commented 3 years ago

Hi, Is there any chance to get the biometryType from canAuthenticate(), or any other option please let me know

LonelyCpp commented 3 years ago

if you're looking to choose between fingerprint vs face unlock on android - this is not possible.

This library uses the androidx.biometric on the inside (documentation) These controls are abstracted away to provide simple authentication flows

ndileep-dev commented 3 years ago

Thanks for the information, Is it possible to get biometryType for IOS? and this lib supports touch id in IOS ? please let me know.

LonelyCpp commented 3 years ago

Hey sorry for the late reply.

Is it possible to get biometryType for IOS

no, it is not possible through this library. But it will be trivial to figure this out by checking the device model (iPhone X and above will have faceID)

this lib supports touch id in IOS

Yes! it will use whatever is supported on the iPhone. it will also fallback to pin authentication if biometrics fails.

(note: iPhones will never have both touchID and faceID at the same time)

ndileep-dev commented 3 years ago

thanks for the information. is there any possibility to hide the 'UsePin/UsePattern' form the prompt in android

LonelyCpp commented 3 years ago

Currently not possible, but we can add this as a feature!

LonelyCpp commented 3 years ago

@ndileep-dev you can check the linked issue for progress :)

ndileep-dev commented 3 years ago

👍