I am using the library React-native-touch-id and I wan't a specific behavior when the error is 'touch Faield'. This is the code:
TouchID.authenticate(---) .then(success => { // }) .catch(error => { console.log(error.details) } )
I actually want to catch this error 'finger print unrecognized' (see the picture)(but my console doesn't show anything unless I click on cancel/close the pop up then I get the 'FINGERPRINT_ERROR_CANCELED'.
I saw in the library that there are multiple errors, like 'authentication_failed'.
I looked up in the issues and found that normally I can get the error when the finger print is wrong :https://github.com/naoufal/react-native-touch-id/issues/144 but it's not the case.
I know the library is not actively currently maintained now, I just want to know is someone faced the same issue.
Thank you.