biometric
Install the required plugin:
tynd add biometricimport { biometric } from "@tynd/plugin-biometric/client";Backed by robius-authentication on macOS and Windows. Linux reports unavailable because the upstream polkit backend is incomplete. isAvailable() reports whether platform support is compiled in — the canonical “is biometrics actually usable?” signal is the result of authenticate.
API surface
Section titled “API surface”biometric.isAvailable(): Promise<boolean>— statictrueon macOS and Windows,falseon Linux.biometric.authenticate(reason, fallbackTitle?): Promise<boolean>— prompts the user; resolvestrueon success andfalsewhen the user cancels or auth fails (never rejects on a normal cancel). It rejects on platform faults (no enrollment, sensor disabled, policy refused) and always on Linux.fallbackTitledefaults to"Authenticate".
if (await biometric.isAvailable()) { const ok = await biometric.authenticate("Unlock saved password"); if (ok) revealSecret();}