cyphermed.api.auth.login

def sync_detailed( *, client: Union[cyphermed.client.AuthenticatedClient, cyphermed.client.Client], body: cyphermed.models.login_form_params.LoginFormParams) -> cyphermed.types.Response[typing.Union[cyphermed.models.challenge.Challenge, cyphermed.models.token_info.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]]

def sync( *, client: Union[cyphermed.client.AuthenticatedClient, cyphermed.client.Client], body: cyphermed.models.login_form_params.LoginFormParams) -> Union[cyphermed.models.challenge.Challenge, cyphermed.models.token_info.TokenInfo, NoneType]:

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]

async def asyncio_detailed( *, client: Union[cyphermed.client.AuthenticatedClient, cyphermed.client.Client], body: cyphermed.models.login_form_params.LoginFormParams) -> cyphermed.types.Response[typing.Union[cyphermed.models.challenge.Challenge, cyphermed.models.token_info.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]]

async def asyncio( *, client: Union[cyphermed.client.AuthenticatedClient, cyphermed.client.Client], body: cyphermed.models.login_form_params.LoginFormParams) -> Union[cyphermed.models.challenge.Challenge, cyphermed.models.token_info.TokenInfo, NoneType]:

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]