Back to results for “Security”
.NET MAUI › Security & Authentication

How do you add biometric authentication (fingerprint/Face ID)?

Intermediate

Answer

There is no built-in MAUI API, so use a plugin (e.g., Plugin.Fingerprint) or implement per platform behind an interface using BiometricPrompt (Android) and LAContext/LocalAuthentication (iOS). Always provide a fallback (PIN/password) and declare the required usage strings in Info.plist.
if (await CrossFingerprint.Current.IsAvailableAsync())
{
    var r = await CrossFingerprint.Current.AuthenticateAsync(
        new AuthenticationRequestConfiguration("Unlock", "Confirm it's you"));
}
Real-world example A banking app gates access with Face ID and falls back to a PIN when biometrics aren't enrolled.

Common follow-ups: What's the Info.plist requirement? | Why provide a fallback?