name: tauri-app-biometric description: "Implement Tauri v2 biometric authentication using TouchID, FaceID, or fingerprint sensors with fallback strategies. Use when adding biometric login, securing sensitive actions with biometric confirmation, or handling devices without biometric support." license: Complete terms in LICENSE.txt
When to use this skill
ALWAYS use this skill when the user mentions:
- Biometric authentication (TouchID, FaceID, fingerprint)
- Securing sensitive actions with biometric confirmation
- Fallback when biometric hardware is unavailable
Trigger phrases include:
- "biometric", "Face ID", "Touch ID", "fingerprint", "biometric login"
How to use this skill
- Install the biometric plugin:
cargo add tauri-plugin-biometric - Register the plugin in your Tauri builder:
tauri::Builder::default() .plugin(tauri_plugin_biometric::init()) - Configure capabilities in
src-tauri/capabilities/default.json:{ "permissions": ["biometric:allow-authenticate", "biometric:allow-status"] } - Check availability and authenticate from the frontend:
import { authenticate, status } from '@tauri-apps/plugin-biometric'; const bioStatus = await status(); if (bioStatus.isAvailable) { await authenticate('Confirm your identity', { allowDeviceCredential: true }); } - Implement fallback for devices without biometric support (PIN or password entry)
- Pair with stronghold plugin for unlocking encrypted secrets after biometric confirmation
Outputs
- Biometric authentication flow with availability check
- Fallback strategy for unsupported devices
- Integration pattern with secure storage
References
Keywords
tauri biometric, face id, touch id, fingerprint, authentication, fallback