> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vijil.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 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



## OpenAPI

````yaml /openapi/api.json post /v1/auth/jwt/refresh
openapi: 3.1.0
info:
  title: Vijil Console API (Combined)
  description: Combined OpenAPI specification for all vijil-console microservices.
  version: 0.1.0
servers: []
security: []
tags:
  - name: Teams
    description: Authentication, users, and team management
  - name: Agent Environment
    description: Agent, persona, policy, and harness management
  - name: Diamond
    description: Evaluation management and report retrieval
  - name: Dome
    description: Protection, guardrails, and telemetry
  - name: Red Team
    description: Red team campaigns
paths:
  /v1/auth/jwt/refresh:
    post:
      tags:
        - Teams
        - auth
      summary: Jwt Refresh
      description: >-
        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
      operationId: jwt_refresh_v1_auth_jwt_refresh_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Jwt Refresh V1 Auth Jwt Refresh Post

````