Auth class

A utility class for handling Firebase Authentication.

This class supports email/password sign-in, Google sign-in, user registration, password reset, and sign-out functionality.

Constructors

Auth()

Properties

auth → FirebaseAuth
final
googleSignIn → GoogleSignIn
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getCurrentUser() → User?
Retrieves the currently signed-in user, if any.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerWithEmail(String email, String password) Future<User?>
Registers a new user with email and password.
sendResetEmail(String email) Future<bool>
Sends a password reset email to the provided email address.
signInWithEmail(String email, String password) Future<User?>
Signs in a user with email and password.
signInWithGoogle() Future<User?>
Signs in a user with Google.
signOut() Future<void>
Signs out the user from all accounts.
toString() String
A string representation of this object.
inherited

Operators

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