Skip to content

Commit 9e2acb8

Browse files
Normalized verifyFingerprintWithCustomFallback on Android
1 parent 2e85c85 commit 9e2acb8

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

fingerprint-auth.android.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,7 @@ var verifyFingerprint = function (arg) {
8989

9090

9191
var verifyFingerprintWithCustomFallback = function (arg) {
92-
return new Promise(function (resolve, reject) {
93-
try {
94-
resolve('Not implemented');
95-
} catch (ex) {
96-
console.log("Error in verifyFingerprint: " + ex);
97-
reject(ex);
98-
}
99-
});
92+
return verifyFingerprint(arg);
10093
};
10194

10295
/**

fingerprint-auth.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,15 @@ declare module "nativescript-fingerprint-auth" {
3030

3131
export function available(): Promise<boolean>;
3232
export function didFingerprintDatabaseChange(): Promise<boolean>;
33+
34+
/**
35+
* This (recommended) method uses keychain instead of localauth so the passcode fallback can be used.
36+
*/
3337
export function verifyFingerprint(options: VerifyFingerprintOptions): Promise<string>;
38+
39+
/**
40+
* This implementation uses LocalAuthentication and has no built-in passcode fallback on iOS.
41+
* On Android this is exactly the same as 'verifyFingerprint'
42+
*/
3443
export function verifyFingerprintWithCustomFallback(options: verifyFingerprintWithCustomFallbackOptions): Promise<string>;
3544
}

0 commit comments

Comments
 (0)