v1

latestOpenAPI 3.1.02026-07-1740131135.9 KB

Login

Login to get an authentication token.

Return an access token in the response and a cookie storing a refresh token.

Args: form_data (Annotated[OAuth2PasswordRequestForm, Depends()]): The form data to authenticate the user. session (Annotated[Session, Depends(get_db)]): The database session. cookie_max_age (int): the lifetime of the cookie storing the refresh token.

post/login

Query parameters

cookie_max_ageinteger

Response

Successful Response

access_tokenstring required
refresh_tokenstring required
token_typestring required