• Get the access token from a login response.

    Parameters

    • body: unknown

      The response body.

    Returns string

    The access token, if the body could be parsed successfully. Otherwise this will throw an error.