GuardoService class

Service class that handles biometric authentication

Constructors

GuardoService({GuardoConfig? config, LocalAuthentication? localAuth})

Properties

availableBiometrics → Future<List<BiometricType>>
Gets the list of available biometric types
no setter
canCheckBiometrics → Future<bool>
Checks if biometric authentication is available on the device
no setter
config → GuardoConfig
Gets the current configuration
no setter
hasAuthenticationMethods → Future<bool>
Checks if any authentication method is available on the device
no setter
hashCode → int
The hash code for this object.
no setterinherited
isDeviceSupported → Future<bool>
Checks if the device is enrolled with biometrics
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

authenticate({bool allowFallback = false}) → Future<bool>
Authenticates the user using biometrics
authenticateWithDeviceCredentials() → Future<bool>
Authenticates using device credentials (PIN/Pattern/Password) only This is useful when biometrics are locked out
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stopAuthentication() → Future<bool>
Stops any ongoing authentication
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited