Readonly
displayThe display name of the user.
Readonly
emailThe email of the user.
Readonly
emailWhether the email has been verified with sendEmailVerification and applyActionCode.
Readonly
isWhether the user is authenticated using the ProviderId.ANONYMOUS provider.
Readonly
metadataAdditional metadata around user creation and sign-in times.
Readonly
phoneThe phone number normalized based on the E.164 standard (e.g. +16505550101) for the user.
This is null if the user has no phone credential linked to the account.
Readonly
photoURLThe profile photo URL of the user.
Readonly
providerAdditional per provider such as displayName and profile information.
Readonly
providerThe provider used to authenticate the user.
Readonly
refreshRefresh token used to reauthenticate the user. Avoid using this directly and prefer getIdToken to refresh the ID token instead.
Readonly
tenantThe user's tenant ID.
This is a read-only property, which indicates the tenant ID used to sign in the user. This is null if the user is signed in from the parent project.
// Set the tenant ID on Auth instance.
auth.tenantId = 'TENANT_PROJECT_ID';
// All future sign-in request now include tenant ID.
const result = await signInWithEmailAndPassword(auth, email, password);
// result.user.tenantId should be 'TENANT_PROJECT_ID'.
Readonly
uidThe user's unique ID, scoped to the project.
Deletes and signs out the user.
Important: this is a security-sensitive operation that requires the user to have recently signed in. If this requirement isn't met, ask the user to authenticate again and then call one of the reauthentication methods like reauthenticateWithCredential.
Returns a JSON Web Token (JWT) used to identify the user to a Firebase service.
Returns the current token if it has not expired or if it will not expire in the next five minutes. Otherwise, this will refresh the token and return a new one.
Optional
forceRefresh: booleanForce refresh regardless of token expiration.
Returns a deserialized JSON Web Token (JWT) used to identify the user to a Firebase service.
Returns the current token if it has not expired or if it will not expire in the next five minutes. Otherwise, this will refresh the token and return a new one.
Optional
forceRefresh: booleanForce refresh regardless of token expiration.
Generated using TypeDoc
A user account.