POST /auth/logout
해당 사용자의 모든 리프레시 토큰을 폐기해 세션을 종료합니다. Authorization 헤더에 유효한 액세스 토큰이 필요합니다.
액세스 토큰은 만료될 때까지(15분) 유효할 수 있습니다. 즉시 완전히 로그아웃하려면 클라이언트에서 액세스 토큰도 삭제하세요.
요청 헤더
Bearer 토큰입니다. 형식: Bearer YOUR_ACCESS_TOKEN
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."
}