local_auth_device_credentials 0.6.3+4 copy "local_auth_device_credentials: ^0.6.3+4" to clipboard
local_auth_device_credentials: ^0.6.3+4 copied to clipboard

discontinued
outdated

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 credentials #

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.

Check if device supports #

final LocalAuthentication auth = LocalAuthentication();

// API 23 and up with security features enabled for Android
// Any iOS device
bool isSupported = await auth.isDeviceSupported();

Authenticate by any means #

final LocalAuthentication auth = LocalAuthentication();

authenticated = await auth.authenticate(
    localizedReason: 'Let OS determine authentication method',
    useErrorDialogs: true,
    stickyAuth: true);

Check biometrics #

final LocalAuthentication auth = LocalAuthentication();

bool isBiometricsAvailable = await auth.canCheckBiometrics();

Authenticate with only biometrics #

final LocalAuthentication auth = LocalAuthentication();

authenticated = await auth.authenticateWithBiometrics(
    localizedReason: 'Biometrics only',
    useErrorDialogs: true,
    stickyAuth: true);
11
likes
0
pub points
57%
popularity

Publisher

verified publisheryourfriendken.com

Flutter plugin for Android and iOS device authentication sensors such as Fingerprint Reader, Touch ID, pin, pattern, or passcode.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, flutter_plugin_android_lifecycle, intl, meta, platform

More

Packages that depend on local_auth_device_credentials