-
Notifications
You must be signed in to change notification settings - Fork 213
/
Copy pathlocalAuthenticationOptions.ts
43 lines (40 loc) · 1.62 KB
/
localAuthenticationOptions.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import LocalAuthenticationLevel from './localAuthenticationLevel';
import LocalAuthenticationStrategy from './localAuthenticationStrategy';
/**
* The options for configuring the display of local authentication prompt, authentication level (Android only) and evaluation policy (iOS only).
*/
interface LocalAuthenticationOptions {
/**
* The title of the authentication prompt. **Applicable for both Android and iOS**.
*/
title: String;
/**
* The subtitle of the authentication prompt. **Applicable for Android only.**
*/
subtitle?: String;
/**
* The description of the authentication prompt. **Applicable for Android only.**
*/
description?: String;
/**
* The cancel button title of the authentication prompt. **Applicable for both Android and iOS.**
*/
cancelTitle?: String;
/**
* The evaluation policy to use when prompting the user for authentication. Defaults to LocalAuthenticationStrategy.deviceOwnerWithBiometrics. **Applicable for iOS only.**
*/
evaluationPolicy?: LocalAuthenticationStrategy;
/**
* The fallback button title of the authentication prompt. **Applicable for iOS only.**
*/
fallbackTitle?: String;
/**
* The authentication level to use when prompting the user for authentication. Defaults to LocalAuthenticationLevel.strong. **Applicable for Android only.**
*/
authenticationLevel?: LocalAuthenticationLevel;
/**
* Should the user be given the option to authenticate with their device PIN, pattern, or password instead of a biometric. **Applicable for Android only.**
*/
deviceCredentialFallback?: Boolean;
}
export default LocalAuthenticationOptions;