Options
All
  • Public
  • Public/Protected
  • All
Menu

A namespace containing tools for managing the current user.

namespace

Index

Functions

  • getCreationTime(): string
  • Gets the creation date of the logged in users account.

    Returns string

  • getDisplayName(): string
  • Gets the display name of the current user.

    Returns string

  • getEmail(): string
  • Gets the users email address.

    Returns string

  • getLastLoginTime(): string
  • Gets the last login date of the logged in users account.

    Returns string

  • getPhoneNumber(): string
  • Gets the current users phone number.

    Returns string

  • getPhotoURL(): string
  • Gets the users profile picture URL.

    Returns string

  • getRefreshToken(): string
  • Gets the refresh token. For advanced usage only.

    Returns string

  • getTenantID(): string
  • Gets the tenant ID. For advanced usage only.

    Returns string

  • getUID(): string
  • Gets the current users Unique IDentifier.

    Returns string

  • isEmailVerified(): boolean
  • Verifies if the current users email is verified.

    Returns boolean

  • sendVerificationEmail(): Promise<void> | ""
  • Send an email to the users email address to verify it.

    note

    Even though this function is redundant, we keep it for consistency.

    see

    currentUser.sendEmailVerification

    Returns Promise<void> | ""

  • setDisplayName(newDisplayName: string): Promise<void>
  • Changes the display name of an user.

    Parameters

    • newDisplayName: string

    Returns Promise<void>

  • setPhotoURL(newPhotoURL: string): Promise<void>
  • Changes the URL to the profile picture of the user.

    Parameters

    • newPhotoURL: string

    Returns Promise<void>

Generated using TypeDoc