EddyVerbruggen / nativescript-fingerprint-auth

:nail_care: 👱‍♂️ Forget passwords, use a fingerprint scanner or facial recognition!
MIT License
134 stars 33 forks source link

Enhance error handling #69

Closed ChaseXC closed 4 years ago

ChaseXC commented 4 years ago

My biggest complaint with the plugin was that the error handling was inconsistent, causing my code to be all over the place: sometimes a string is thrown, sometimes nothing is thrown, and sometimes a native error is thrown. Not only that, but the BiometryLockout error code for iOS was being glossed over by the available function, causing my application to think biometric auth wasn't available (and thus should continue without auth) when in reality, biometric auth IS available (and my application should NOT continue until biometric auth can be met).

ChaseXC commented 4 years ago

Closed this PR because my fork is diverging too much from this version.