sjhoeksma / cordova-plugin-keychain-touch-id

Touch ID plugin with saving password in keychain for IOS and android
87 stars 160 forks source link

Added error returns #11

Closed MobilidadeBPI closed 6 years ago

MobilidadeBPI commented 7 years ago

Added error returns for isAvailable and verify functions to allow callers to be able to go into different flows regarding touch ID unavalability.

Android: Added option for user authentication required as some scenarios may not use it, defaults to true to keep compatibility with previous implementation. Altered save so you can choose to save without fingerprint (same behavior as iOS). isAvailable and verify functions return the same error codes as iOS to keep consistency for caller.