FirebaseAuth

actual class FirebaseAuth(source)

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).

actual class FirebaseAuth(source)
expect class FirebaseAuth(source)

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).

actual class FirebaseAuth(source)
actual class FirebaseAuth(source)

Types

Link copied to clipboard
actual fun interface AuthStateListener

Listens for changes of the signed-in user.

actual fun interface AuthStateListener

Listens for changes of the signed-in user.

expect fun interface AuthStateListener

Listens for changes of the signed-in user.

actual fun interface AuthStateListener

Listens for changes of the signed-in user.

actual fun interface AuthStateListener

Listens for changes of the signed-in user.

Link copied to clipboard
actual object Companion
actual object Companion
expect object Companion
actual object Companion
actual object Companion
Link copied to clipboard
actual fun interface IdTokenListener

Listens for changes of the signed-in user and of its ID token.

actual fun interface IdTokenListener

Listens for changes of the signed-in user and of its ID token.

expect fun interface IdTokenListener

Listens for changes of the signed-in user and of its ID token.

actual fun interface IdTokenListener

Listens for changes of the signed-in user and of its ID token.

actual fun interface IdTokenListener

Listens for changes of the signed-in user and of its ID token.

Properties

Link copied to clipboard
actual val app: FirebaseApp

The FirebaseApp this instance belongs to.

actual val app: FirebaseApp

The FirebaseApp this instance belongs to.

expect val app: FirebaseApp

The FirebaseApp this instance belongs to.

actual val app: FirebaseApp

The FirebaseApp this instance belongs to.

actual val app: FirebaseApp

The FirebaseApp this instance belongs to.

Link copied to clipboard

The signed-in user, or null.

The signed-in user, or null.

The signed-in user, or null.

The signed-in user, or null.

The signed-in user, or null.

Link copied to clipboard

The custom auth domain used for the provider sign-in flows, or null for the project default.

The custom auth domain used for the provider sign-in flows, or null for the project default.

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.

Link copied to clipboard

The settings of this instance, for tests.

The settings of this instance, for tests.

The settings of this instance, for tests.

The settings of this instance, for tests.

The settings of this instance, for tests.

Link copied to clipboard
val ios: FIRAuth

The underlying Firebase iOS SDK object.

Link copied to clipboard
val js: Auth

The underlying Firebase JS SDK object.

val js: Auth

The underlying Firebase JS SDK object.

Link copied to clipboard
actual val languageCode: String?

The language of the emails and SMS the SDK sends, or null for the project default.

actual val languageCode: String?

The language of the emails and SMS the SDK sends, or null for the project default.

expect val languageCode: String?

The language of the emails and SMS the SDK sends, or null for the project default.

actual val languageCode: String?

The language of the emails and SMS the SDK sends, or null for the project default.

actual val languageCode: String?

The language of the emails and SMS the SDK sends, or null for the project default.

Link copied to clipboard

Android only: the result of a provider sign-in flow interrupted by the app being recreated, or null.

Link copied to clipboard
actual val tenantId: String?

The tenant of the Identity Platform project, or null for the parent project.

actual val tenantId: String?

The tenant of the Identity Platform project, or null for the parent project.

expect val tenantId: String?

The tenant of the Identity Platform project, or null for the parent project.

actual val tenantId: String?

The tenant of the Identity Platform project, or null for the parent project.

actual val tenantId: String?

The tenant of the Identity Platform project, or null for the parent project.

Functions

Link copied to clipboard

Registers listener, called now and whenever the signed-in user changes.

Registers listener, called now and whenever the signed-in user changes.

Registers listener, called now and whenever the signed-in user changes.

Registers listener, called now and whenever the signed-in user changes.

Registers listener, called now and whenever the signed-in user changes.

Link copied to clipboard

Registers listener, called now and whenever the signed-in user or its ID token changes.

Registers listener, called now and whenever the signed-in user or its ID token changes.

Registers listener, called now and whenever the signed-in user or its ID token changes.

Registers listener, called now and whenever the signed-in user or its ID token changes.

Registers listener, called now and whenever the signed-in user or its ID token changes.

Link copied to clipboard
actual fun applyActionCode(code: String): Task<Nothing?>

Applies the out-of-band code of an email action.

actual fun applyActionCode(code: String): Task<Nothing?>

Applies the out-of-band code of an email action.

expect fun applyActionCode(code: String): Task<Nothing?>

Applies the out-of-band code of an email action.

actual fun applyActionCode(code: String): Task<Nothing?>

Applies the out-of-band code of an email action.

actual fun applyActionCode(code: String): Task<Nothing?>

Applies the out-of-band code of an email action.

Link copied to clipboard

Checks the out-of-band code of an email action and completes with what it does.

Checks the out-of-band code of an email action and completes with what it does.

Checks the out-of-band code of an email action and completes with what it does.

Checks the out-of-band code of an email action and completes with what it does.

Checks the out-of-band code of an email action and completes with what it does.

Link copied to clipboard
actual fun confirmPasswordReset(code: String, newPassword: String): Task<Nothing?>

Sets newPassword with the code of a password reset email.

actual fun confirmPasswordReset(code: String, newPassword: String): Task<Nothing?>

Sets newPassword with the code of a password reset email.

expect fun confirmPasswordReset(code: String, newPassword: String): Task<Nothing?>

Sets newPassword with the code of a password reset email.

actual fun confirmPasswordReset(code: String, newPassword: String): Task<Nothing?>

Sets newPassword with the code of a password reset email.

actual fun confirmPasswordReset(code: String, newPassword: String): Task<Nothing?>

Sets newPassword with the code of a password reset email.

Link copied to clipboard

Creates an account for email with password and signs it in.

Creates an account for email with password and signs it in.

Creates an account for email with password and signs it in.

Creates an account for email with password and signs it in.

Creates an account for email with password and signs it in.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

The sign-in methods email can use; only works with email enumeration protection disabled.

The sign-in methods email can use; only works with email enumeration protection disabled.

The sign-in methods email can use; only works with email enumeration protection disabled.

The sign-in methods email can use; only works with email enumeration protection disabled.

The sign-in methods email can use; only works with email enumeration protection disabled.

Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard

Initializes the reCAPTCHA configuration, so that the first sign-in does not have to.

Initializes the reCAPTCHA configuration, so that the first sign-in does not have to.

Initializes the reCAPTCHA configuration, so that the first sign-in does not have to.

Initializes the reCAPTCHA configuration, so that the first sign-in does not have to.

Initializes the reCAPTCHA configuration, so that the first sign-in does not have to.

Link copied to clipboard

Whether link is a sign-in link sent by sendSignInLinkToEmail.

Whether link is a sign-in link sent by sendSignInLinkToEmail.

Whether link is a sign-in link sent by sendSignInLinkToEmail.

Whether link is a sign-in link sent by sendSignInLinkToEmail.

Whether link is a sign-in link sent by sendSignInLinkToEmail.

Link copied to clipboard
actual fun revokeAccessToken(token: String): Task<Nothing?>

Revokes the Sign in with Apple token of the current user.

actual fun revokeAccessToken(token: String): Task<Nothing?>

Revokes the Sign in with Apple token of the current user.

expect fun revokeAccessToken(token: String): Task<Nothing?>

Revokes the Sign in with Apple token of the current user.

actual fun revokeAccessToken(token: String): Task<Nothing?>

Revokes the Sign in with Apple token of the current user.

actual fun revokeAccessToken(token: String): Task<Nothing?>

Revokes the Sign in with Apple token of the current user.

Link copied to clipboard

Sends a password reset email to email.

actual fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): Task<Nothing?>

Sends a password reset email to email whose link follows actionCodeSettings, when given.

Sends a password reset email to email.

actual fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): Task<Nothing?>

Sends a password reset email to email whose link follows actionCodeSettings, when given.

Sends a password reset email to email.

expect fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): Task<Nothing?>

Sends a password reset email to email whose link follows actionCodeSettings, when given.

Sends a password reset email to email.

actual fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): Task<Nothing?>

Sends a password reset email to email whose link follows actionCodeSettings, when given.

Sends a password reset email to email.

actual fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): Task<Nothing?>

Sends a password reset email to email whose link follows actionCodeSettings, when given.

Link copied to clipboard
actual fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): Task<Nothing?>

Sends a sign-in link to email following actionCodeSettings.

actual fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): Task<Nothing?>

Sends a sign-in link to email following actionCodeSettings.

expect fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): Task<Nothing?>

Sends a sign-in link to email following actionCodeSettings.

actual fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): Task<Nothing?>

Sends a sign-in link to email following actionCodeSettings.

actual fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): Task<Nothing?>

Sends a sign-in link to email following actionCodeSettings.

Link copied to clipboard
actual fun setCustomAuthDomain(customAuthDomain: String)
actual fun setCustomAuthDomain(customAuthDomain: String)
expect fun setCustomAuthDomain(customAuthDomain: String)
actual fun setCustomAuthDomain(customAuthDomain: String)
actual fun setCustomAuthDomain(customAuthDomain: String)
Link copied to clipboard
actual fun setLanguageCode(languageCode: String)

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.

actual fun setLanguageCode(languageCode: String)

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.

expect fun setLanguageCode(languageCode: String)

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.

actual fun setLanguageCode(languageCode: String)

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.

actual fun setLanguageCode(languageCode: String)

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.

Link copied to clipboard
actual fun setTenantId(tenantId: String)

Sets tenantId.

actual fun setTenantId(tenantId: String)

Sets tenantId.

expect fun setTenantId(tenantId: String)

Sets tenantId.

actual fun setTenantId(tenantId: String)

Sets tenantId.

actual fun setTenantId(tenantId: String)

Sets tenantId.

Link copied to clipboard

Signs in an anonymous user, or returns the current one.

Signs in an anonymous user, or returns the current one.

Signs in an anonymous user, or returns the current one.

Signs in an anonymous user, or returns the current one.

Signs in an anonymous user, or returns the current one.

Link copied to clipboard

Signs in with credential from a provider.

Signs in with credential from a provider.

Signs in with credential from a provider.

Signs in with credential from a provider.

Signs in with credential from a provider.

Link copied to clipboard

Signs in with a custom token minted by the Admin SDK.

Signs in with a custom token minted by the Admin SDK.

Signs in with a custom token minted by the Admin SDK.

Signs in with a custom token minted by the Admin SDK.

Signs in with a custom token minted by the Admin SDK.

Link copied to clipboard
actual fun signInWithEmailAndPassword(email: String, password: String): Task<AuthResult>

Signs in with email and password.

actual fun signInWithEmailAndPassword(email: String, password: String): Task<AuthResult>

Signs in with email and password.

expect fun signInWithEmailAndPassword(email: String, password: String): Task<AuthResult>

Signs in with email and password.

actual fun signInWithEmailAndPassword(email: String, password: String): Task<AuthResult>

Signs in with email and password.

actual fun signInWithEmailAndPassword(email: String, password: String): Task<AuthResult>

Signs in with email and password.

Link copied to clipboard
actual fun signInWithEmailLink(email: String, link: String): Task<AuthResult>

Signs in with the sign-in link sent to email.

actual fun signInWithEmailLink(email: String, link: String): Task<AuthResult>

Signs in with the sign-in link sent to email.

expect fun signInWithEmailLink(email: String, link: String): Task<AuthResult>

Signs in with the sign-in link sent to email.

actual fun signInWithEmailLink(email: String, link: String): Task<AuthResult>

Signs in with the sign-in link sent to email.

actual fun signInWithEmailLink(email: String, link: String): Task<AuthResult>

Signs in with the sign-in link sent to email.

Link copied to clipboard
actual fun signOut()

Signs out the current user.

actual fun signOut()

Signs out the current user.

expect fun signOut()

Signs out the current user.

actual fun signOut()

Starts signing out; currentUser reads as null immediately, as on Android, while the JS SDK completes it asynchronously.

actual fun signOut()

Starts signing out; currentUser reads as null immediately, as on Android, while the JS SDK completes it asynchronously.

Link copied to clipboard

Android only: signs in with provider through a web flow started from activity.

Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
Link copied to clipboard

Makes user the current user of this instance.

Makes user the current user of this instance.

Makes user the current user of this instance.

Makes user the current user of this instance.

Makes user the current user of this instance.

Link copied to clipboard
actual fun useAppLanguage()

Sets languageCode to the device's language.

actual fun useAppLanguage()

Sets languageCode to the device's language.

expect fun useAppLanguage()

Sets languageCode to the device's language.

actual fun useAppLanguage()

Sets languageCode to the device's language.

actual fun useAppLanguage()

Sets languageCode to the device's language.

Link copied to clipboard
actual fun useEmulator(host: String, port: Int)

Connects to the Authentication emulator at host:port; must be called before the instance is used.

actual fun useEmulator(host: String, port: Int)

Connects to the Authentication emulator at host:port; must be called before the instance is used.

expect fun useEmulator(host: String, port: Int)

Connects to the Authentication emulator at host:port; must be called before the instance is used.

actual fun useEmulator(host: String, port: Int)

Connects to the Authentication emulator at host:port; must be called before the instance is used.

actual fun useEmulator(host: String, port: Int)

Connects to the Authentication emulator at host:port; must be called before the instance is used.

Link copied to clipboard

Checks the code of a password reset email and completes with the email it was sent to.

Checks the code of a password reset email and completes with the email it was sent to.

Checks the code of a password reset email and completes with the email it was sent to.

Checks the code of a password reset email and completes with the email it was sent to.

Checks the code of a password reset email and completes with the email it was sent to.