Authentication class
A utility class to handle various authentication methods including email, Google, Facebook, and anonymous sign-ins, as well as user management functions.
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
-
deleteUser(
String email, String password) → Future< User?> - Deletes the current user after re-authentication.
-
mailVerification(
) → Future< void> - Sends an email verification to the current user.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
otpLogin(
String mobile, BuildContext context) → Future< FirebaseAuth> - Initiates a phone number authentication using OTP.
-
reauthenticate(
String email, String password) → Future< UserCredential> - Re-authenticates the current user with their email and password.
-
signInAnonymously(
) → Future< User?> - Signs in a user anonymously.
-
signinMail(
String email, String password) → Future< User?> - Signs in a user using an email and password.
-
signInWithFacebook(
) → Future< FacebookLogin> - Signs in a user using their Facebook account.
-
signInWithGoogle(
) → Future< GoogleSignInAccount?> - Signs in a user using their Google account.
-
signOut(
) → Future< void> - Signs out the current user from all accounts: email, Google, and Facebook.
-
signOutEmail(
) → Future< void> - Signs out the current user from their email account.
-
signOutFacebook(
) → Future< void> - Signs out the current user from their Facebook account.
-
signOutGoogle(
) → Future< void> - Signs out the current user from their Google account.
-
signupMail(
String email, String password) → Future< User?> - Registers a new user with an email and password.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited