# Free, bundled Mobiler plugin: biometric authentication (Face ID / fingerprint). Call from Rust:
# cx.plugin("biometric", "authenticate", "Unlock your vault", |r| Msg::Authed(r.ok))
# → r.ok == true on success; r.ok == false (output = reason) on cancel / fail / unavailable.
#
# Install: mobiler plugin add biometric
# NOTE: needs the FragmentActivity shell (MainActivity extends FragmentActivity) — true since the
# template was updated. Pair with the `securestore` plugin to protect stored secrets.
= "biometric"
= "Biometric auth — Face ID / fingerprint (free)"
[]
= ["android/BiometricPlugin.kt"]
= '"biometric" to BiometricPlugin(application)'
= ["androidx.biometric:biometric:1.1.0"]
[]
= ["ios/BiometricPlugin.swift"]
= 'case "biometric": return await BiometricPlugin.handle(op: op, input: input)'
# iOS requires this usage string to use Face ID (Touch ID needs no extra key).
[]
= "Authenticate to unlock secure features."