react-native-touch-id icon indicating copy to clipboard operation
react-native-touch-id copied to clipboard

Enter password give Authentication Failed

Open eliprodigy opened this issue 7 years ago • 9 comments

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

eliprodigy avatar Mar 25 '17 00:03 eliprodigy

Maybe we have to use this? https://github.com/naoufal/react-native-passcode-auth

Evyraad avatar Apr 20 '17 14:04 Evyraad

#46

frangeris avatar Jul 14 '17 01:07 frangeris

@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?

danny-does-stuff avatar Jul 28 '17 17:07 danny-does-stuff

@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 avatar Aug 19 '17 20:08 zibs

@zibs what about using deviceOwnerAuthentication that support both, Touch ID and password, look here #46

frangeris avatar Aug 19 '17 21:08 frangeris

@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.

zibs avatar Aug 19 '17 21:08 zibs

Good @zibs , I changed that line and works like a charm...

frangeris avatar Aug 19 '17 21:08 frangeris

@zibs In retrospect, it's probably best to consolidate them and pass a fallbackToPasscode boolean option.

naoufal avatar Aug 19 '17 21:08 naoufal

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.

raazatul7 avatar Mar 22 '20 19:03 raazatul7