IBaseAuthentication class abstract
An abstract class that defines the authentication actions for users.
This class provides methods to create an account, log in, and log out.
The type parameter UsersBaseModel represents the type of user data model.
- Implementers
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
-
changePassword(
String email, String oldPassword, String newPassword) → Future< UsersBaseModel> -
Changes the password for the user.
/// \param email The email address of the user whose password is being changed.
\param oldPassword The current password of the user (required for re-authentication).
\param newPassword The new password to set for the user account.
/// \returns A
Futurethat completes when the password is changed successfully. Throws aFirebaseAuthExceptionif the old password is incorrect or other Firebase errors occur. -
createAccount(
{Map< String, dynamic> ? body}) → Future<UsersBaseModel> - Creates a new user account.
-
logIn(
) → Future< UsersBaseModel> - Logs in a user.
-
logOut(
) → Future< void> - Logs out the current user.
-
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