react-native-fingerprint-android
react-native-fingerprint-android copied to clipboard
In case of error there should be return statement
In my humble opinion in example: in code fragment:
} catch(error) {
Toast.show(`Authentication aborted: ${error.message}`, Toast.SHORT);
}
there should be return statement:
} catch (error) {
console.log(error);
Toast.show(`Authentication aborted: ${error.message}`, Toast.SHORT);
return;
}
Bcs when i was getting [Error: Too many attempts. Try again later.]
This code had executed: Toast.show('Auth successful!', Toast.SHORT);