SimpleFirebaseAuth class
Singleton class providing simple wrappers around Firebase Auth.
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
-
authState(
) → Stream< AuthUser?> - Returns a stream of AuthUser, listening to auth state changes.
-
currentUser(
) → Future< AuthUser?> - Returns the current signed-in user (or null if not signed in).
-
initialize(
{FirebaseOptions? options}) → Future< void> -
Initializes Firebase core. Must be called before using FirebaseAuth.
Optionally accepts custom
FirebaseOptionsfor web or custom config. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sendPasswordReset(
String email) → Future< void> - Sends a password reset email to the given address.
-
signIn(
String email, String password) → Future< AuthUser> - Signs in a user with email and password.
-
signOut(
) → Future< void> - Signs out the currently logged-in user.
-
signUp(
String email, String password) → Future< AuthUser> - Creates a new user with email and password.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → SimpleFirebaseAuth
-
The single shared instance of SimpleFirebaseAuth.
final