Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@tauri-apps/plugin-biometric

Package Overview
Dependencies
Maintainers
5
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tauri-apps/plugin-biometric - npm Package Compare versions

Comparing version
2.0.0-rc.1
to
2.0.0
+3
-3
dist-js/index.cjs

@@ -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 {

@@ -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 @@ }

{
"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"
}
}

@@ -5,2 +5,10 @@ ![biometric](https://github.com/tauri-apps/plugins-workspace/raw/v2/plugins/biometric/banner.png)

| 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 @@