@tauri-apps/plugin-biometric
Advanced tools
@@ -23,3 +23,3 @@ 'use strict'; | ||
| async function checkStatus() { | ||
| return await core.invoke("plugin:biometric|status"); | ||
| return await core.invoke('plugin:biometric|status'); | ||
| } | ||
@@ -39,5 +39,5 @@ /** | ||
| async function authenticate(reason, options) { | ||
| await core.invoke("plugin:biometric|authenticate", { | ||
| await core.invoke('plugin:biometric|authenticate', { | ||
| reason, | ||
| ...options, | ||
| ...options | ||
| }); | ||
@@ -44,0 +44,0 @@ } |
@@ -11,3 +11,3 @@ export declare enum BiometryType { | ||
| error?: string; | ||
| errorCode?: "appCancel" | "authenticationFailed" | "invalidContext" | "notInteractive" | "passcodeNotSet" | "systemCancel" | "userCancel" | "userFallback" | "biometryLockout" | "biometryNotAvailable" | "biometryNotEnrolled"; | ||
| errorCode?: 'appCancel' | 'authenticationFailed' | 'invalidContext' | 'notInteractive' | 'passcodeNotSet' | 'systemCancel' | 'userCancel' | 'userFallback' | 'biometryLockout' | 'biometryNotAvailable' | 'biometryNotEnrolled'; | ||
| } | ||
@@ -14,0 +14,0 @@ export interface AuthOptions { |
+3
-3
@@ -21,3 +21,3 @@ import { invoke } from '@tauri-apps/api/core'; | ||
| async function checkStatus() { | ||
| return await invoke("plugin:biometric|status"); | ||
| return await invoke('plugin:biometric|status'); | ||
| } | ||
@@ -37,5 +37,5 @@ /** | ||
| async function authenticate(reason, options) { | ||
| await invoke("plugin:biometric|authenticate", { | ||
| await invoke('plugin:biometric|authenticate', { | ||
| reason, | ||
| ...options, | ||
| ...options | ||
| }); | ||
@@ -42,0 +42,0 @@ } |
+3
-3
| { | ||
| "name": "@tauri-apps/plugin-biometric", | ||
| "version": "2.0.0-rc.1", | ||
| "license": "MIT or APACHE-2.0", | ||
| "version": "2.0.0", | ||
| "license": "MIT OR Apache-2.0", | ||
| "authors": [ | ||
@@ -28,4 +28,4 @@ "Tauri Programme within The Commons Conservancy" | ||
| "dependencies": { | ||
| "@tauri-apps/api": "^2.0.0-rc.4" | ||
| "@tauri-apps/api": "^2.0.0" | ||
| } | ||
| } |
+11
-3
@@ -5,2 +5,10 @@  | ||
| | Platform | Supported | | ||
| | -------- | --------- | | ||
| | Linux | x | | ||
| | Windows | x | | ||
| | macOS | x | | ||
| | Android | ✓ | | ||
| | iOS | ✓ | | ||
| ## Install | ||
@@ -22,3 +30,3 @@ | ||
| [dependencies] | ||
| tauri-plugin-biometric = "2.0.0-rc" | ||
| tauri-plugin-biometric = "2.0.0" | ||
| # alternatively with Git: | ||
@@ -67,4 +75,4 @@ tauri-plugin-biometric = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v2" } | ||
| ```javascript | ||
| import { authenticate } from "@tauri-apps/plugin-biometric"; | ||
| await authenticate('Open your wallet'); | ||
| import { authenticate } from '@tauri-apps/plugin-biometric' | ||
| await authenticate('Open your wallet') | ||
| ``` | ||
@@ -71,0 +79,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
9314
1.78%1
-50%121
7.08%Updated