@tauri-apps/plugin-biometric
此内容尚不支持你的语言。
Enumerations
Section titled “Enumerations”BiometryType
Section titled “BiometryType”Enumeration Members
Section titled “Enumeration Members”FaceID
Section titled “FaceID”FaceID: 2;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L12
Iris: 3;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L14
None: 0;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L8
TouchID
Section titled “TouchID”TouchID: 1;Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L10
Interfaces
Section titled “Interfaces”AuthOptions
Section titled “AuthOptions”Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
allowDeviceCredential? |
boolean |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L36 |
cancelTitle? |
string |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L37 |
confirmationRequired? |
boolean |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L45 |
fallbackTitle? |
string |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L40 |
maxAttemps? |
number |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L46 |
subtitle? |
string |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L44 |
title? |
string |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L43 |
Status
Section titled “Status”Properties
Section titled “Properties”| Property | Type | Defined in |
|---|---|---|
biometryType |
BiometryType |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L19 |
error? |
string |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L20 |
errorCode? |
| "appCancel" | "authenticationFailed" | "invalidContext" | "notInteractive" | "passcodeNotSet" | "systemCancel" | "userCancel" | "userFallback" | "biometryLockout" | "biometryNotAvailable" | "biometryNotEnrolled" |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L21 |
isAvailable |
boolean |
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L18 |
Functions
Section titled “Functions”authenticate()
Section titled “authenticate()”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');Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
reason |
string |
|
options? |
AuthOptions |
Returns
Section titled “Returns”Promise<void>
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L69
checkStatus()
Section titled “checkStatus()”function checkStatus(): Promise<Status>Checks if the biometric authentication is available.
Returns
Section titled “Returns”a promise resolving to an object containing all the information about the status of the biometry.
Source: https://github.com/tauri-apps/plugins-workspace/blob/v2/plugins/biometric/guest-js/index.ts#L53
© 2026 Tauri Contributors. CC-BY / MIT