react-native-keychain: Wrapped error: User not authenticated on Android with TouchId and FaceId available
Hi, I’m using Samsung S9 (it has touch Id and faceId ).
Step to reproduce : install new project and add react-native-keychain;
on set data : Keychain.setInternetCredentials(server,username,password, {accessControl:Keychain.ACCESS_CONTROL.BIOMETRY_ANY});
on get data : const credentials = await Keychain.getInternetCredentials(server);
actual : - When use touchId there’s credential callback.
- When use FaceId of this device, after authentication callback success, decryptBytes in native Android still failed, and It throw android.security.keystore.UserNotAuthenticatedException: User not authenticated
Please help.
About this issue
- Original URL
- State: open
- Created 7 years ago
- Reactions: 3
- Comments: 16 (4 by maintainers)
Hi there,
On Android, the current Face ID implementation is categorized as a level 2 biometric. This means it doesn’t meet the higher security threshold we require—level 3—for sensitive operations. Essentially, while the device supports both Face ID and fingerprint authentication, only fingerprint (or another level 3 biometric) offers the robust security guarantees keychain needs
@Bowlerr thanks for the reply, that’s really helpful.
Yup, realised Samsung Face ID is categorised as a L2 and won’t be used for keychain. This is working correctly on 9.2.3, my Samsung only pops up fingerprint auth, but on 10.0.0 it also pops up Face ID as optional and when I click on using Face ID it returns “User not authenticated” as expected because L2 Face ID can’t open keychain.
Is there a chance to not showing Face ID option for android user?