Class UserManager

Provides a higher level API for signing a user in, signing out, managing the user's claims returned from the identity provider, and managing an access token returned from the identity provider (OAuth2/OIDC).

Constructors

Properties

Get the settings used to configure the UserManager.

Accessors

Methods

  • Removes stale state entries in storage for incomplete authorize requests.

    Returns Promise<void>

  • Load the User object for the currently authenticated user.

    Returns Promise<null | User>

    A promise

  • Remove from any storage the currently authenticated user.

    Returns Promise<void>

    A promise

  • Parameters

    • Optional types: ("access_token" | "refresh_token")[]

    Returns Promise<void>

  • Trigger a request (via a popup window) to the authorization endpoint.

    Parameters

    Returns Promise<User>

    A promise containing the authenticated User.

    Throws

    Error In cases of wrong authentication.

  • Trigger a redirect of the current window to the authorization endpoint.

    Parameters

    Returns Promise<void>

    A promise

    Throws

    Error In cases of wrong authentication.

  • Trigger a silent request (via refresh token or an iframe) to the authorization endpoint.

    Parameters

    Returns Promise<null | User>

    A promise that contains the authenticated User.

  • Trigger a redirect of a popup window window to the end session endpoint.

    Parameters

    Returns Promise<void>

    A promise

  • Trigger a redirect of the current window to the end session endpoint.

    Parameters

    Returns Promise<void>

    A promise

  • Trigger a silent request (via an iframe) to the end session endpoint.

    Parameters

    Returns Promise<void>

    A promise

  • Enables silent renew for the UserManager.

    Returns void

  • Disables silent renew for the UserManager.

    Returns void

Generated using TypeDoc