flutter_local_authentication 1.0.0 copy "flutter_local_authentication: ^1.0.0" to clipboard
flutter_local_authentication: ^1.0.0 copied to clipboard

A flutter plugin that allows access to Local Authentication / Biometrics on iOS, macOS, Linux and Android.

Local Authentication #

A flutter plugin that allows access to Local Authentication / Biometrics on iOS, macOS, Linux and Android (Windows Hello is a work in progress).

Features #

  • Detects if biometric authentication can be done in the current platform (canAuthenticate).

  • Triggers platform's native authentication for the current user (authenticate).

  • Read/Write macOS/iOS touchIDAuthenticationAllowableReuseDuration value

Considerations #

canAuthenticate #

The function canAuthenticate will return true in the following scenarios.

  • Android: true if BiometricManager returns that it can authenticate with one of the following allowed authenticators:

    • BiometricManager.Authenticators.BIOMETRIC_STRONG
    • BiometricManager.Authenticators.BIOMETRIC_WEAK
    • BiometricManager.Authenticators.DEVICE_CREDENTIAL
  • iOS: true if LAContext.supportsLocalAuthentication returns true for device policy:

    • deviceOwnerAuthenticationWithBiometrics
  • macOS: true if LAContext.supportsLocalAuthentication returns true for device policy:

    • deviceOwnerAuthentication
  • linux: true if fprintd-verify is installed and user can execute it.

Supported platforms #

  • iOS 12 or newer
  • macOS 10.12.2 or newer
  • Linux (requires libfprint)
  • Android 6.0 or newer
  • Windows (work in progress)

TODO #

  • localise messages
11
likes
0
pub points
81%
popularity

Publisher

verified publishereaceto.dev

A flutter plugin that allows access to Local Authentication / Biometrics on iOS, macOS, Linux and Android.

Homepage
Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_local_authentication