跳转到主要内容

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/logout

通过作废用户的全部刷新令牌来结束会话。须在请求头中携带有效的访问令牌。
访问令牌在过期前(15 分钟内)仍可能有效。若需客户端侧立即完全退出,请同时清除本地保存的访问令牌。

请求头

Authorization
string
必填
Bearer 令牌。格式:Bearer YOUR_ACCESS_TOKEN

响应

success
boolean
退出是否成功。
message
string
确认信息。
curl -X POST https://api.llmgenerator.com/api/v1/auth/logout \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
{
  "success": true,
  "message": "Logout successful. All refresh tokens have been revoked."
}