AuthService class Services
A service for interacting with Firebase Auth.
The functions are distributed over mixins to keep the code organized. The mixins for this class are:
- AuthCreateDeleteFunctions: Contains functions for creating and deleting users.
- AuthLogInLogOutFunctions: Contains functions for logging in and out users.
- AuthUpdateFunctions: Contains functions for updating user information.
- AuthStateChanges: Contains functions for listening to auth state changes.
Constructors
- AuthService(FirebaseAuth authInstance)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- instance ↔ FirebaseAuth
-
latefinalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
authStateChanges(
) → Stream< User?> -
Notifies about changes to the user's sign-in state as a stream.
inherited
-
checkApproved(
User user) → Future< AuthResultStatus> -
Checks if a user has been approved
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reauthenticate(
{required String email, required String password}) → Future< AuthResultStatus?> -
Reauthenticate a user using EmailAuthProvider
inherited
-
sendPasswordResetLink(
{required String email}) → Future< AuthResultStatus> -
Sends a password reset link to the user associated with
email.inherited -
sendVerificationMail(
) → Future< void> -
Sends a verification email to the user.
inherited
-
signIn(
{required String email, required String password}) → Future< AuthResultStatus> -
Sign in a user given an email and a password
inherited
-
signOut(
) → Future< void> -
Sign out the user
inherited
-
signUp(
{required String? name, required String email, required String password}) → Future< User?> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
updateEmail(
{required String password, required String? newEmail}) → Future< AuthResultStatus?> -
Update the user's email to
newEmailafter reauthentication withpassword.inherited -
updatePhotoUrl(
String url) → Future< void> -
Update the user's profile photo to
url.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited