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:

Mixed in types

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
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 newEmail after reauthentication with password.
inherited
updatePhotoUrl(String url) Future<void>
Update the user's profile photo to url.
inherited

Operators

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