Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ANDROID] Errors Catch And response Touch Failed #144

Open
Toshihiro2010 opened this issue Jul 18, 2018 · 2 comments
Open

[ANDROID] Errors Catch And response Touch Failed #144

Toshihiro2010 opened this issue Jul 18, 2018 · 2 comments

Comments

@Toshihiro2010
Copy link

Hello ,
I have Problem Libary react-native-touch-id for Android.


TouchID.authenticate('to demo this react-native component', optionalConfigObject)
.then(success => {
Alert.alert('Alert','Authenticated Successfully');
})
.catch(error => {
Alert.alert('Alert','Authentication Failed');
});

problem is touch Faield And click Cancel
Error same same, I want separate Error Please

Thank you.

@ronilitman
Copy link
Contributor

error.details will evaluate "cancelled" when you click on cancel, if the fingerprint is is failed the string will be "failed"

@ashutoshtracky
Copy link

Same issue is being faced by me, if giving wrong fingerprint catch block is not getting called, hence not able to handle the fallback scenario for failed authentication. But when we are cancelling it then catch block is executed with User Cancelled status. Kindly help in the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants