Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • displayAuthenticationBanner(runtimeScene: RuntimeScene): void
  • Action to display the banner to the user, depending on their authentication status.

    Parameters

    Returns void

  • getUserId(): null | string
  • Returns the username from the local storage.

    Returns null | string

  • getUserToken(): null | string
  • Returns the user token from the local storage.

    Returns null | string

  • getUsername(): string
  • Returns the username from the local storage.

    Returns string

  • hasLoggedIn(): boolean
  • Returns true if the user just logged in. Useful to update username or trigger messages in the game.

    Returns boolean

  • isAuthenticated(): boolean
  • Returns true if a user token is present in the local storage.

    Returns boolean

  • isAuthenticationWindowOpen(): boolean
  • Condition to check if the window is open, so that the game can be paused in the background.

    Returns boolean

  • Remove the user information from the local storage.

    Parameters

    Returns void

  • Action to display the authentication window to the user.

    Parameters

    Returns void

  • removeAuthenticationBanner(runtimeScene: RuntimeScene): void
  • Remove the banner displaying the authentication status.

    Parameters

    Returns void

  • removeAuthenticationContainer(runtimeScene: RuntimeScene): void
  • Remove the container displaying the authentication window and the callback.

    Parameters

    Returns void

Generated using TypeDoc