@tauri-apps/plugin-biometric
FaceID: 2;Source: undefined
Iris: 3;Source: undefined
None: 0;Source: undefined
TouchID: 1;Source: undefined
| Property | Type | Defined in |
|---|---|---|
biometryType | BiometryType | Source: undefined |
error? | string | Source: undefined |
errorCode? | | "appCancel" | "authenticationFailed" | "invalidContext" | "notInteractive" | "passcodeNotSet" | "systemCancel" | "userCancel" | "userFallback" | "biometryLockout" | "biometryNotAvailable" | "biometryNotEnrolled" | Source: undefined |
isAvailable | boolean | Source: undefined |
function authenticate(reason, options?): Promise<void>Prompts the user for authentication using the system interface (touchID, faceID or Android Iris). Rejects if the authentication fails.
import { authenticate } from "@tauri-apps/plugin-biometric";await authenticate('Open your wallet');| Parameter | Type | Description |
|---|---|---|
reason | string | |
options? | AuthOptions |
Promise<void>
Source: undefined
function checkStatus(): Promise<Status>Checks if the biometric authentication is available.
a promise resolving to an object containing all the information about the status of the biometry.
Source: undefined
Tauri v2.9 中文网 - 粤ICP备13048890号
Nodejs.cn 旗下网站