Documentation Index
Fetch the complete documentation index at: https://docs.llmgenerator.com/llms.txt
Use this file to discover all available pages before exploring further.
POST /auth/refresh
当访问令牌过期时,调用此接口获取新的访问令牌。须提供有效的刷新令牌。
本接口采用令牌轮换以增强安全:每次刷新都会签发新的刷新令牌,旧令牌自动作废。
请求体
curl -X POST https://api.llmgenerator.com/api/v1/auth/refresh \
-H "Content-Type: application/json" \
-d '{
"refreshToken": "YOUR_REFRESH_TOKEN"
}'
{
"success": true,
"message": "Token refreshed successfully",
"tokens": {
"accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
"expiresIn": 900,
"tokenType": "Bearer"
}
}