local_auth_device_credentials 0.6.2+4 local_auth_device_credentials: ^0.6.2+4 copied to clipboard
Flutter plugin for Android and iOS device authentication sensors such as Fingerprint Reader, Touch ID, pin, pattern, or passcode.
local_auth with device credential option #
This is a fork of the local_auth
There is an open Pull Request to merge into bases local_auth package.
Addresses issue: #49703
Device credentails #
The original plugin only supports biometric authentication. This package add a method that allows for device credentials if biometric authentication is not available.
localAuth.authenticate()
behaves the same as the original plugin's localAuth.authenticateWithBiometrics()
but also allows device credentials (pin, pattern, passcode) to be use.
final LocalAuthentication auth = LocalAuthentication();
authenticated = await auth.authenticate(
localizedReason: 'Let OS determine authentication method',
useErrorDialogs: true,
stickyAuth: true);