Logout
POST
/web/v1/users/self/auth/logoutJWTLogs the authenticated user out by terminating the current session and invalidating the associated tokens.
Authentication
Auth Chain: WEB Chain — requires
Authorization: Bearer <jwt>These headers are injected by the system (frontend does nothing):X-PORTAL-ACCESS-CODE(Nginx),X-Request-Id(Gateway)
Request Parameters
No request parameters required.
Success Response
Success200
{
"version": "1.3.0",
"timestamp": 1709337600000,
"success": true,
"code": "2000",
"message": "SUCCESS",
"data": {
"terminatedSessions": 1
}
}Error Responses
Unauthorized401
{
"success": false,
"code": "4010",
"message": "Invalid or expired token"
}Notes
- Terminates the current session and invalidates the associated tokens.
- The
terminatedSessionsfield in the response indicates how many sessions were ended.