florist.api.routes.client.auth module¶
FastAPI client routes for authentication.
- async login_for_access_token(form_data)[source]¶
Make a login request to get an access token.
- Parameters:
form_data (
OAuth2PasswordRequestForm
) – (OAuth2PasswordRequestForm) The form data from the login request.- Return type:
- Returns:
(Token) The access token.
- Raise:
(HTTPException) If the user does not exist or the password is incorrect.