Function get_logintoken

  • Fetches the login token from the given URL using the provided (unauthorized) fetch function.

    Parameters

    • fetch: ((input, init?) => Promise<Response>)

      The fetch function to use for making the request.

        • (input, init?): Promise<Response>
        • Parameters

          • input: RequestInfo | URL
          • Optional init: RequestInit

          Returns Promise<Response>

    • base: string

      The base URL to fetch the login token from.

    Returns Promise<string>

    The login token string.

    Throws

    An error if the login token cannot be found.

Generated using TypeDoc