POST/auth/logout
Destroy the current session
Operation auth.logout
Description
Ends the session that made the request, so its bearer token stops working. Any signed-in user may call it.
Authentication
Requires a signed-in session: the client sends its session token as a bearer token in the Authorization header.
Responses
200 OK
application/jsonDestroySessionResponse
Confirms that a session was signed out.
1 field
messagestringrequired- always
ok
- always
Other fields are allowed.
Other responses
| Status | Meaning | Body |
|---|---|---|
| 401 | Unauthorized |
|
| 500 | Internal Server Error |
|
| 503 | Service Unavailable |
|