AuthenticationManagement class
The AuthenticationManagement class provides a suite of tools for managing user authentication in a Flutter application. It supports biometric authentication and phone number verification using Firebase Authentication.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
checkLocalAuth(
{required VoidCallback callback, dynamic isDeviceNotSupported()?}) → Future - Authenticates the user using the device's biometric authentication system. This may include fingerprint, face ID, or other secure methods supported by the device.
-
sendSmsOtp(
{required String smsSenderUrl, required String companyName, required String phone}) → Future< int> - Sends a 6-digit OTP SMS to the user's phone using an external SMS provider.
-
signInWithPhoneNumber(
{required String phoneNumber, required Widget redirectPage, String pageRoute = '', int waitingTime = 120, dynamic onError()?, Future< void> onComplete()?}) → Future<void> - Starts phone number verification using Firebase Authentication and handles OTP verification.