florist.api.routes.client.auth module¶
FastAPI client routes for authentication.
- async change_password(form_data)[source]¶
 Change the password for the user.
- Parameters:
 form_data (
OAuth2ChangePasswordRequestForm) – (OAuth2ChangePasswordForm) The form data from the change password request. It must contain the username, current_password, and new_password fields.- Return type:
 - Returns:
 (Token) The access token.
- 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.