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"
}
}
Generate a new JWT token
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"
}
}
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"
}
}