Options
All
  • Public
  • Public/Protected
  • All
Menu

Firebase Authentication Event Tools.

namespace

Index

Functions

  • anonymSignIn(callbackStateVariable?: Variable): Promise<void>
  • Login with a temporary account.

    Parameters

    • Optional callbackStateVariable: Variable

    Returns Promise<void>

  • createAccountWithEmail(email: string, password: string, callbackStateVariable?: Variable): Promise<void>
  • Creates an account with basic email-password authentication.

    Parameters

    • email: string

      The users email.

    • password: string

      The users password.

    • Optional callbackStateVariable: Variable

    Returns Promise<void>

  • isAuthenticated(): boolean
  • Returns true if the user is currently authenticated.

    see

    authenticated

    Returns boolean

  • isAuthentified(): boolean
  • deprecated

    Use isAuthenticated instead.

    Returns boolean

  • signInWithEmail(email: string, password: string, callbackStateVariable?: Variable): Promise<void>
  • Signs the user in with basic email-password authentication.

    Parameters

    • email: string

      The users email.

    • password: string

      The users password.

    • Optional callbackStateVariable: Variable

    Returns Promise<void>

  • signInWithProvider(providerName: ProviderName, callbackStateVariable?: Variable): void
  • Signs the user in with an external provider. Only works on the web, NOT on Electron/Cordova.

    Parameters

    • providerName: ProviderName

      The external provider to use.

    • Optional callbackStateVariable: Variable

    Returns void

  • token(): string
  • Get the logged-in users authentication token. Tries to refresh it everytime the function is called.

    Returns string

Variables

authenticated: boolean = false

The current authentication status.

currentUser: firebase.User | null = null

The logged-in users data.

Generated using TypeDoc