-
-
Notifications
You must be signed in to change notification settings - Fork 111
/
Copy pathindex.d.ts
25 lines (23 loc) · 992 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
export * from './common';
import { BiometricIDAvailableResult, BiometricApi, VerifyBiometricOptions, BiometricResult, ERROR_CODES } from './common';
export declare class BiometricAuth implements BiometricApi {
available(): Promise<BiometricIDAvailableResult>;
didBiometricDatabaseChange(options?: VerifyBiometricOptions): Promise<boolean>;
/**
* IOS: This 'default' method uses keychain instead of localauth so the passcode fallback can be used
*
* Android: Depending on the options may or may not use crypto in conjunction with authentication.
*
* @param options options as to what to show.
*/
verifyBiometric(options: VerifyBiometricOptions): Promise<BiometricResult>;
close(): void;
/**
*
* When using encryption backed biometrics keys are generated, this allow you to remove the key.
*
* @param keyName Optional keyName to delete, if not supplied will delete the default key.
*/
deleteKey(keyName?: string): void;
}
export { BiometricResult, ERROR_CODES };