cyphermed.api.auth.login
Login
Exchange basic auth for token pair or refresh token for access token
Args: body (LoginFormParams):
Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns: Response[Union[Challenge, TokenInfo]]
Login
Exchange basic auth for token pair or refresh token for access token
Args: body (LoginFormParams):
Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns: Union[Challenge, TokenInfo]
Login
Exchange basic auth for token pair or refresh token for access token
Args: body (LoginFormParams):
Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns: Response[Union[Challenge, TokenInfo]]
Login
Exchange basic auth for token pair or refresh token for access token
Args: body (LoginFormParams):
Raises: errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True. httpx.TimeoutException: If the request takes longer than Client.timeout.
Returns: Union[Challenge, TokenInfo]