Adding Biometric Authentication to Flutter Apps with local_auth
A developer describes HerCycle, a privacy-first period tracker that keeps all data on the device and uses a PIN and biometric lock to protect it. The local_auth plugin, maintained by the Flutter team, adds fingerprint or face unlock by returning only a boolean for whether the user passed the check. Biometric matching happens inside the iOS Secure Enclave or Android's Trusted Execution Environment, so app code never receives biometric data. The guide notes that version 3 moved the biometricOnly flag into a direct parameter, breaking older snippets, and that setup on Android and iOS requires specific manifest permissions and a usage description. Because misconfigured setups often fail silently by returning false, the author stresses getting platform configuration right before writing Dart code.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in