Jwt Refresh
Refresh JWT token.
Accepts a valid or expired JWT token and returns a new token with fresh expiration. The token can be provided in a cookie or Authorization header.
Args: request: FastAPI request object response: FastAPI response object to set cookies user_manager: FastAPI Users user manager session: Database session
Returns: JWT token response with access_token and token_type (also sets cookie)
Raises: HTTPException: If token is invalid or user not found
POST
Jwt Refresh
Response
200 - application/json
Successful Response
The response is of type Response Jwt Refresh V1 Auth Jwt Refresh Post · object.
Last modified on April 21, 2026
Previous
Change PasswordChange the current user's password.
Verifies the current password, updates to the new password,
clears the password_change_required flag, and returns a fresh JWT.
Args:
request: Change password request with current and new passwords
response: FastAPI response object to set cookies
claims: JWT claims from middleware
user_manager: FastAPI Users user manager
session: Database session
Returns:
JWT token response with access_token and token_type
Raises:
UnauthenticatedException: If current password is invalid
BadRequestException: If new password is same as current or invalid
Next
Jwt Refresh