File tree 2 files changed +10
-8
lines changed
2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -89,14 +89,7 @@ var verifyFingerprint = function (arg) {
89
89
90
90
91
91
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 ) ;
100
93
} ;
101
94
102
95
/**
Original file line number Diff line number Diff line change @@ -30,6 +30,15 @@ declare module "nativescript-fingerprint-auth" {
30
30
31
31
export function available ( ) : Promise < boolean > ;
32
32
export function didFingerprintDatabaseChange ( ) : Promise < boolean > ;
33
+
34
+ /**
35
+ * This (recommended) method uses keychain instead of localauth so the passcode fallback can be used.
36
+ */
33
37
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
+ */
34
43
export function verifyFingerprintWithCustomFallback ( options : verifyFingerprintWithCustomFallbackOptions ) : Promise < string > ;
35
44
}
You can’t perform that action at this time.
0 commit comments