Refresh Token
Authentication
Refresh Token
Re-issue a JWT for the currently authenticated user, extending expiry.
Validates the existing token via the standard auth dependency and issues
a fresh token with the same user/tenant/role context. The old token
remains valid until its original exp claim, but the client must use
the new one from this point forward.
Args: user_id: Authenticated user ID (resolved from current JWT) current_user: Full user context including tenant_id and role
Returns: TokenResponse: New JWT with extended expiry
Raises: HTTPException 401: If the request carries no valid token
POST
Refresh Token
Cookies
Response
Successful Response