FirebaseAuth class

A Firebase Authentication class, that allows you to log into firebase.

Provides methods to create new firebase accounts, log a user into firebase and more. Most methods here create an instance of a FirebaseAccount, which can be used to manage an individual account. All methods provided here are global methods for firebase auth.

Constructors

FirebaseAuth(Client client, String apiKey, [String? locale])
Creates a new firebase auth instance.
FirebaseAuth.api(RestApi api, [String? locale])
Creates a new firebase auth instance.

Properties

api RestApi
The internally used RestApi instance.
final
hashCode int
The hash code for this object.
no setterinherited
locale String?
The default locale to be used for E-Mails sent by Firebase.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

fetchProviders(String email, [Uri? continueUri]) Future<List<String>>
Returns a list of all providers that can be used to login.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPasswordReset(String email, {String? locale}) Future
Sends a password reset email to a user.
resetPassword(String oobCode, String newPassword) Future
Completes a password reset by setting a new password.
signInWithCustomToken(String token, {bool autoRefresh = true}) Future<FirebaseAccount>
Signs into firebase with a custom token.
signInWithIdp(IdpProvider provider, Uri requestUri, {bool autoRefresh = true}) Future<FirebaseAccount>
Signs into firebase with an IDP-Provider.
signInWithPassword(String email, String password, {bool autoRefresh = true}) Future<FirebaseAccount>
Signs into firebase with an email and a password.
signUpAnonymous({bool autoRefresh = true}) Future<FirebaseAccount>
Signs up to firebase as an anonymous user.
signUpWithPassword(String email, String password, {bool autoVerify = true, bool autoRefresh = true, String? locale}) Future<FirebaseAccount>
Signs up to firebase with an email and a password.
toString() String
A string representation of this object.
inherited
validatePasswordReset(String oobCode) Future
Checks, if a password reset code is valid.

Operators

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