Handles interfacing with JupyterHub.

Constructors

Properties

Methods

Constructors

Properties

basePath: string = "/hub/api"

Methods

  • Private

    Decodes an authorization token.

    Parameters

    • target: string

      authorization token

    Returns decodedToken

    info relating to the host associated with the token

    Throws

    thrown if jupyterHub token incorrectly formatted -- unable to parse correctly

  • Gets the host associated with a token. Unused.

    Parameters

    • token: string

    Returns string

  • Returns the username for a given jupyterHub authorization token.

    Parameters

    • token: string

      the token for authorization to the jupterHub host

    Returns Promise<null | string>

    username

    Throws

    jupyterhubHost must be in whitelist

Generated using TypeDoc