Skip to main content

biometric_auth_lock 0.3.1 copy "biometric_auth_lock: ^0.3.1" to clipboard
biometric_auth_lock: ^0.3.1 copied to clipboard

A reusable biometric authentication and PIN lock service for Flutter apps with support for fingerprint, Face ID, and PIN fallback

Changelog #

0.3.1 #

  • Fixed LocalAuthService.setupBiometric (and the biometric-not-supported branch of resolveWithBiometric) overwriting the persisted BiometricAuthData with a fresh object instead of copyWith-ing the existing one — this silently wiped the fallback PIN (and lastAuthenticated) whenever a user enabled/accepted biometric authentication after having already set a PIN.

0.3.0 #

  • Added getPinCodeAfterBiometricAuth to ILocalAuthService / LocalAuthService — reveals the stored PIN fallback after a successful biometric check, throwing BiometricAuthPinNotConfiguredException or BiometricAuthPinFailedException when it can't.
  • Added BiometricLockService.getPinAfterBiometricAuth(...) facade method — same behavior, returns null instead of throwing.
  • Added new exception types (BiometricPinAuthException and subclasses), now exported from the package root.
  • analysis_options.yaml now excludes generated platform folders (android/, ios/, build/, etc.) from analysis.

0.2.1 #

  • Add french documentation

0.2.0 #

  • Breaking: BiometricLockService.withDefaults(LocalStorage) renamed to BiometricLockService.withStorage(LocalStorage).
  • Added parameterless BiometricLockService.withDefaults() — creates its own SharedPreferencesLocalStorage internally. Consumers no longer need to import local_storage_impl for the common case.
  • Added storage backend documentation (SecureLocalStorage, SharedPreferencesLocalStorage, MapLocalStorage) with usage examples.
  • Restructured Platform Setup: moved FlutterFragmentActivity requirement from Troubleshooting into the Android setup section.
  • Fixed README code samples that attempted to instantiate the abstract LocalStorage class directly.

0.1.0 #

  • Initial release
  • Biometric authentication support (fingerprint, Face ID)
  • PIN code fallback authentication
  • Persistent authentication state storage
  • Multi-platform support (Android, iOS)
  • Functional error handling with Either
  • Comprehensive exception types
  • High-level and low-level API interfaces
3
likes
110
points
518
downloads

Documentation

API reference

Publisher

verified publishertheresilient.dev

Weekly Downloads

A reusable biometric authentication and PIN lock service for Flutter apps with support for fingerprint, Face ID, and PIN fallback

Repository (GitHub)
View/report issues

Topics

#biometric #authentication #lock #local #pin

License

MIT (license)

Dependencies

dart3z, flutter, json_annotation, local_auth, local_auth_android, local_auth_darwin, local_storage_impl

More

Packages that depend on biometric_auth_lock