Skip to main content
POST
/
api
/
auth
/
refresh
curl -X POST "https://api.hitler.app/api/auth/refresh" \
  -H "Authorization: Bearer YOUR_CURRENT_TOKEN"
{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expiresIn": 604800,
  "user": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "email": "user@company.com",
    "name": "John Doe",
    "role": "employee",
    "organizationId": "456e7890-e12b-34d5-a678-426614174000"
  }
}
This endpoint requires authentication. The current token must still be valid.

Response

accessToken
string
New JWT token
expiresIn
number
Token expiration time in seconds
user
object
User information
curl -X POST "https://api.hitler.app/api/auth/refresh" \
  -H "Authorization: Bearer YOUR_CURRENT_TOKEN"
{
  "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expiresIn": 604800,
  "user": {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "email": "user@company.com",
    "name": "John Doe",
    "role": "employee",
    "organizationId": "456e7890-e12b-34d5-a678-426614174000"
  }
}