FirebaseAuth
The entry point of Firebase Authentication, mirroring com.google.firebase.auth.FirebaseAuth from the Firebase Android SDK: obtained per FirebaseApp with the static accessors (or the Firebase.auth extensions), it signs users in and out, creates accounts, handles email actions and reports the signed-in user and its token to listeners.
Not mirrored: the Activity-bound provider sign-in flows and the SDK-internal token accessors (see api/android-sdk/exclusions.txt).
Types
Properties
The auth module's cinterop only forward-declares FIRApp, so the app is matched by identity against firebase-app's.
The FirebaseApp this instance belongs to.
The signed-in user, or null.
The custom auth domain used for the provider sign-in flows, or null for the project default.
The auth domain of the app's options; the JS SDK only takes it when the app is initialized.
The auth domain of the app's options; the JS SDK only takes it when the app is initialized.
The settings of this instance, for tests.
The language of the emails and SMS the SDK sends, or null for the project default.
Android only: the result of a provider sign-in flow interrupted by the app being recreated, or null.
Android only: the result of a provider sign-in flow interrupted by the app being recreated, or null.
Functions
Sets newPassword with the code of a password reset email.
The sign-in methods email can use; only works with email enumeration protection disabled.
Initializes the reCAPTCHA configuration, so that the first sign-in does not have to. Completes without doing anything on tvOS, which has no reCAPTCHA.
Sends a password reset email to email.
Sends a password reset email to email whose link follows actionCodeSettings, when given.
Sends a sign-in link to email following actionCodeSettings.
Sets customAuthDomain. The JS SDK takes the auth domain from the app's options when the app is initialized, so on JS and wasmJs this does nothing and carries @dev.gitlive.firebase.UnsupportedOnJs.
Does nothing: the JS SDK takes the auth domain from the app's options when the app is initialized.
Does nothing: the JS SDK takes the auth domain from the app's options when the app is initialized.
Sets languageCode; the SDK's getter is nullable and its setter is not, so, as in the Android SDK, this is not a property setter.
Signs in an anonymous user, or returns the current one.
Signs in with credential from a provider.
Signs out the current user.
Starts signing out; currentUser reads as null immediately, as on Android, while the JS SDK completes it asynchronously.
Starts signing out; currentUser reads as null immediately, as on Android, while the JS SDK completes it asynchronously.