cordova-plugin-android-fingerprint-auth
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "cordova-plugin-android-fingerprint-auth", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Cordova plugin to use Android fingerprint authentication API", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -7,6 +7,6 @@ #About | ||
#Screenshots | ||
| ------------- |:-------------:| -----:| | ||
| ![Fingerprint Auth Dialog](screenshots/fp_auth_dialog.jpg) | ![Fingerprint Auth Dialog Success](screenshots/fp_auth_dialog_success.png) | ![Fingerprint Auth Dialog Fail](screenshots/fp_auth_dialog_fail.jpg) | | ||
| ![Fingerprint Auth Dialog Too Many](screenshots/fp_auth_dialog_too_many.jpg) | ![Fingerprint Auth Dialog No Backup](screenshots/fp_auth_dialog_no_backup.jpg) | | ||
| ![Confirm Password](screenshots/confirm_creds_pw.png) | ![Confirm PIN](screenshots/confirm_creds_pin.png) | ![Confirm Pattern](screenshots/confirm_creds_pattern.png) | | ||
###Fingerprint Auth Dialog### | ||
![Fingerprint Auth Dialog](screenshots/fp_auth_dialog.jpg) | ![Fingerprint Auth Dialog Success](screenshots/fp_auth_dialog_success.png) | ![Fingerprint Auth Dialog Fail](screenshots/fp_auth_dialog_fail.jpg) | ![Fingerprint Auth Dialog Too Many](screenshots/fp_auth_dialog_too_many.jpg) | ![Fingerprint Auth Dialog No Backup](screenshots/fp_auth_dialog_no_backup.jpg) | ![Fingerprint Auth Dialog No Backup](screenshots/fp_auth_dialog_longer.png) | ||
###Backup Credentials### | ||
![Confirm Password](screenshots/confirm_creds_pw.png) | ![Confirm PIN](screenshots/confirm_creds_pin.png) | ![Confirm Pattern](screenshots/confirm_creds_pattern.png) | ||
@@ -30,3 +30,3 @@ | ||
#API | ||
##FingerprintAuth.show | ||
###FingerprintAuth.show### | ||
``` | ||
@@ -58,3 +58,6 @@ FingerprintAuth.show({ | ||
##FingerprintAuth.isAvailable | ||
`clientId` will be used as the alias for your key in the Android Key Store. | ||
`clientSecret` will be used to encrypt the token returned upon successful fingerprint authentication. | ||
###FingerprintAuth.isAvailable### | ||
``` | ||
@@ -70,5 +73,5 @@ FingerprintAuth.isAvailable(isAvailableSuccess, isAvailableError); | ||
*/ | ||
function isAvailableSuccess(isAvailable) { | ||
console.log("FingerprintAuth available: " + JSON.stringify(isAvailable)); // { isAvailable: true } | ||
if (isAvailable) { | ||
function isAvailableSuccess(result) { | ||
console.log("FingerprintAuth available: " + JSON.stringify(result)); | ||
if (result.isAvailable) { | ||
FingerprintAuth.show({ | ||
@@ -75,0 +78,0 @@ clientId: "myAppName", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
431357
30
83