FirebaseAuth

actual class FirebaseAuth(source)
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)
actual class FirebaseAuth(source)

Types

Link copied to clipboard
actual fun interface AuthStateListener
actual fun interface AuthStateListener
expect fun interface AuthStateListener

Listens for changes of the signed-in user.

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

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

actual fun interface IdTokenListener
actual fun interface IdTokenListener
actual fun interface IdTokenListener

Properties

Link copied to clipboard
actual val app: <Error class: unknown class>
actual val app: <Error class: unknown class>

The auth module's cinterop only forward-declares FIRApp, so the app is matched by identity against firebase-app's.

expect val app: <Error class: unknown class>

The FirebaseApp this instance belongs to.

actual val app: <Error class: unknown class>
actual val app: <Error class: unknown class>
actual val app: <Error class: unknown class>
Link copied to clipboard

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 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
Link copied to clipboard
val ios: <Error class: unknown class>

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?
actual val languageCode: String?
expect val languageCode: String?

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

actual val languageCode: String?
actual val languageCode: String?
actual val languageCode: String?
Link copied to clipboard

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.

Link copied to clipboard
actual val tenantId: String?
actual val tenantId: String?
expect val tenantId: String?

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

actual val tenantId: String?
actual val tenantId: String?
actual val tenantId: String?

Functions

Link copied to clipboard

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.

Link copied to clipboard
actual fun applyActionCode(code: String): <Error class: unknown class><Nothing?>
actual fun applyActionCode(code: String): <Error class: unknown class><Nothing?>
expect fun applyActionCode(code: String): <Error class: unknown class><Nothing?>

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

actual fun applyActionCode(code: String): <Error class: unknown class><Nothing?>
actual fun applyActionCode(code: String): <Error class: unknown class><Nothing?>
actual fun applyActionCode(code: String): <Error class: unknown class><Nothing?>
Link copied to clipboard
actual fun checkActionCode(code: String): <Error class: unknown class><ActionCodeResult>
actual fun checkActionCode(code: String): <Error class: unknown class><ActionCodeResult>
expect fun checkActionCode(code: String): <Error class: unknown class><ActionCodeResult>

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

actual fun checkActionCode(code: String): <Error class: unknown class><ActionCodeResult>
actual fun checkActionCode(code: String): <Error class: unknown class><ActionCodeResult>
actual fun checkActionCode(code: String): <Error class: unknown class><ActionCodeResult>
Link copied to clipboard
actual fun confirmPasswordReset(code: String, newPassword: String): <Error class: unknown class><Nothing?>
actual fun confirmPasswordReset(code: String, newPassword: String): <Error class: unknown class><Nothing?>
expect fun confirmPasswordReset(code: String, newPassword: String): <Error class: unknown class><Nothing?>

Sets newPassword with the code of a password reset email.

actual fun confirmPasswordReset(code: String, newPassword: String): <Error class: unknown class><Nothing?>
actual fun confirmPasswordReset(code: String, newPassword: String): <Error class: unknown class><Nothing?>
actual fun confirmPasswordReset(code: String, newPassword: String): <Error class: unknown class><Nothing?>
Link copied to clipboard
actual fun createUserWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>
actual fun createUserWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>
expect fun createUserWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>

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

actual fun createUserWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>
actual fun createUserWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>
actual fun createUserWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>
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
actual fun fetchSignInMethodsForEmail(email: String): <Error class: unknown class><SignInMethodQueryResult>
actual fun fetchSignInMethodsForEmail(email: String): <Error class: unknown class><SignInMethodQueryResult>
expect fun fetchSignInMethodsForEmail(email: String): <Error class: unknown class><SignInMethodQueryResult>

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

actual fun fetchSignInMethodsForEmail(email: String): <Error class: unknown class><SignInMethodQueryResult>
actual fun fetchSignInMethodsForEmail(email: String): <Error class: unknown class><SignInMethodQueryResult>
actual fun fetchSignInMethodsForEmail(email: String): <Error class: unknown class><SignInMethodQueryResult>
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
actual fun initializeRecaptchaConfig(): <Error class: unknown class><Nothing?>
actual fun initializeRecaptchaConfig(): <Error class: unknown class><Nothing?>
expect fun initializeRecaptchaConfig(): <Error class: unknown class><Nothing?>

Initializes the reCAPTCHA configuration, so that the first sign-in does not have to. Completes without doing anything on tvOS, which has no reCAPTCHA.

actual fun initializeRecaptchaConfig(): <Error class: unknown class><Nothing?>
actual fun initializeRecaptchaConfig(): <Error class: unknown class><Nothing?>
actual fun initializeRecaptchaConfig(): <Error class: unknown class><Nothing?>
Link copied to clipboard

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

Link copied to clipboard
actual fun revokeAccessToken(token: String): <Error class: unknown class><Nothing?>
actual fun revokeAccessToken(token: String): <Error class: unknown class><Nothing?>
expect fun revokeAccessToken(token: String): <Error class: unknown class><Nothing?>

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

actual fun revokeAccessToken(token: String): <Error class: unknown class><Nothing?>
actual fun revokeAccessToken(token: String): <Error class: unknown class><Nothing?>
actual fun revokeAccessToken(token: String): <Error class: unknown class><Nothing?>
Link copied to clipboard
actual fun sendPasswordResetEmail(email: String): <Error class: unknown class><Nothing?>
actual fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): <Error class: unknown class><Nothing?>
actual fun sendPasswordResetEmail(email: String): <Error class: unknown class><Nothing?>
actual fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): <Error class: unknown class><Nothing?>
expect fun sendPasswordResetEmail(email: String): <Error class: unknown class><Nothing?>

Sends a password reset email to email.

expect fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): <Error class: unknown class><Nothing?>

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

actual fun sendPasswordResetEmail(email: String): <Error class: unknown class><Nothing?>
actual fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): <Error class: unknown class><Nothing?>
actual fun sendPasswordResetEmail(email: String): <Error class: unknown class><Nothing?>
actual fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): <Error class: unknown class><Nothing?>
actual fun sendPasswordResetEmail(email: String): <Error class: unknown class><Nothing?>
actual fun sendPasswordResetEmail(email: String, actionCodeSettings: ActionCodeSettings?): <Error class: unknown class><Nothing?>
Link copied to clipboard
actual fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): <Error class: unknown class><Nothing?>
actual fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): <Error class: unknown class><Nothing?>
expect fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): <Error class: unknown class><Nothing?>

Sends a sign-in link to email following actionCodeSettings.

actual fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): <Error class: unknown class><Nothing?>
actual fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): <Error class: unknown class><Nothing?>
actual fun sendSignInLinkToEmail(email: String, actionCodeSettings: ActionCodeSettings): <Error class: unknown class><Nothing?>
Link copied to clipboard
actual fun setCustomAuthDomain(customAuthDomain: String)
actual fun setCustomAuthDomain(customAuthDomain: String)
expect fun setCustomAuthDomain(customAuthDomain: String)

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.

actual fun setCustomAuthDomain(customAuthDomain: String)

Does nothing: the JS SDK takes the auth domain from the app's options when the app is initialized.

actual fun setCustomAuthDomain(customAuthDomain: String)
actual fun setCustomAuthDomain(customAuthDomain: String)

Does nothing: the JS SDK takes the auth domain from the app's options when the app is initialized.

Link copied to clipboard
actual fun setLanguageCode(languageCode: String)
actual fun setLanguageCode(languageCode: String)
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)
actual fun setLanguageCode(languageCode: String)
actual fun setLanguageCode(languageCode: String)
Link copied to clipboard
actual fun setTenantId(tenantId: String)
actual fun setTenantId(tenantId: String)
expect fun setTenantId(tenantId: String)

Sets tenantId.

actual fun setTenantId(tenantId: String)
actual fun setTenantId(tenantId: String)
actual fun setTenantId(tenantId: String)
Link copied to clipboard
actual fun signInAnonymously(): <Error class: unknown class><AuthResult>
actual fun signInAnonymously(): <Error class: unknown class><AuthResult>
expect fun signInAnonymously(): <Error class: unknown class><AuthResult>

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

actual fun signInAnonymously(): <Error class: unknown class><AuthResult>
actual fun signInAnonymously(): <Error class: unknown class><AuthResult>
actual fun signInAnonymously(): <Error class: unknown class><AuthResult>
Link copied to clipboard
actual fun signInWithCredential(credential: AuthCredential): <Error class: unknown class><AuthResult>
actual fun signInWithCredential(credential: AuthCredential): <Error class: unknown class><AuthResult>
expect fun signInWithCredential(credential: AuthCredential): <Error class: unknown class><AuthResult>

Signs in with credential from a provider.

actual fun signInWithCredential(credential: AuthCredential): <Error class: unknown class><AuthResult>
actual fun signInWithCredential(credential: AuthCredential): <Error class: unknown class><AuthResult>
actual fun signInWithCredential(credential: AuthCredential): <Error class: unknown class><AuthResult>
Link copied to clipboard
actual fun signInWithCustomToken(token: String): <Error class: unknown class><AuthResult>
actual fun signInWithCustomToken(token: String): <Error class: unknown class><AuthResult>
expect fun signInWithCustomToken(token: String): <Error class: unknown class><AuthResult>

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

actual fun signInWithCustomToken(token: String): <Error class: unknown class><AuthResult>
actual fun signInWithCustomToken(token: String): <Error class: unknown class><AuthResult>
actual fun signInWithCustomToken(token: String): <Error class: unknown class><AuthResult>
Link copied to clipboard
actual fun signInWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>
actual fun signInWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>
expect fun signInWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>

Signs in with email and password.

actual fun signInWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>
actual fun signInWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>
actual fun signInWithEmailAndPassword(email: String, password: String): <Error class: unknown class><AuthResult>
Link copied to clipboard
actual fun signInWithEmailLink(email: String, link: String): <Error class: unknown class><AuthResult>
actual fun signInWithEmailLink(email: String, link: String): <Error class: unknown class><AuthResult>
expect fun signInWithEmailLink(email: String, link: String): <Error class: unknown class><AuthResult>

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

actual fun signInWithEmailLink(email: String, link: String): <Error class: unknown class><AuthResult>
actual fun signInWithEmailLink(email: String, link: String): <Error class: unknown class><AuthResult>
actual fun signInWithEmailLink(email: String, link: String): <Error class: unknown class><AuthResult>
Link copied to clipboard
actual fun signOut()
actual fun signOut()
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()
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.

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
actual fun updateCurrentUser(user: FirebaseUser): <Error class: unknown class><Nothing?>
actual fun updateCurrentUser(user: FirebaseUser): <Error class: unknown class><Nothing?>
expect fun updateCurrentUser(user: FirebaseUser): <Error class: unknown class><Nothing?>

Makes user the current user of this instance.

actual fun updateCurrentUser(user: FirebaseUser): <Error class: unknown class><Nothing?>
actual fun updateCurrentUser(user: FirebaseUser): <Error class: unknown class><Nothing?>
actual fun updateCurrentUser(user: FirebaseUser): <Error class: unknown class><Nothing?>
Link copied to clipboard
actual fun useAppLanguage()
actual fun useAppLanguage()
expect fun useAppLanguage()

Sets languageCode to the device's language.

actual fun useAppLanguage()
actual fun useAppLanguage()
actual fun useAppLanguage()
Link copied to clipboard
actual fun useEmulator(host: String, port: Int)
actual fun useEmulator(host: String, port: Int)
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)
actual fun useEmulator(host: String, port: Int)
actual fun useEmulator(host: String, port: Int)
Link copied to clipboard
actual fun verifyPasswordResetCode(code: String): <Error class: unknown class><String>
actual fun verifyPasswordResetCode(code: String): <Error class: unknown class><String>
expect fun verifyPasswordResetCode(code: String): <Error class: unknown class><String>

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

actual fun verifyPasswordResetCode(code: String): <Error class: unknown class><String>
actual fun verifyPasswordResetCode(code: String): <Error class: unknown class><String>
actual fun verifyPasswordResetCode(code: String): <Error class: unknown class><String>