react-native-touch-id
react-native-touch-id copied to clipboard
Enter password give Authentication Failed
Hi, i'm using you example on iphone 6s 9.3.5 (deivce) when i'm failed to enter with the touch ID and asking to enter password i click enter password and instantly get message "Authentication Failed" before i do anything can you please help me ? thanks
Maybe we have to use this? https://github.com/naoufal/react-native-passcode-auth
#46
@eliprodigy according to the readme, when the user chooses the fallback method (enter password), the promise will fail with LAErrorUserFallback
. Is it possible that you are not handling this case?
@dannyharding10 I think you're right. @eliprodigy I think the issue is that unless you implement what @Iyoss recommends - hitting Enter Password is going to give the response code LAErrorUserFallback
wherein you would then implement the alternative library for handling passcode auth: https://github.com/naoufal/react-native-passcode-auth
@zibs what about using deviceOwnerAuthentication
that support both, Touch ID and password, look here #46
@frangeris We could ask @naoufal what he thinks. He's already built a separate library that handles this case specifically, which may be for the best. Alternatively, it could come bundled together, but I'm not sure what's the best scenario for this lib and the other lib.
If we are going to bundle them, we would also have to do that for the Android side of things when it comes as well.
Good @zibs , I changed that line and works like a charm...
@zibs In retrospect, it's probably best to consolidate them and pass a fallbackToPasscode
boolean option.
It's not working, passcodeFallback: true
but it doesn't do anything. Help!!
Edit: Actually it is not supported in android and in iOS, if you try 3-4 times with wrong touch/face id it will automatically ask for the passcode.