/auth/logout
The /auth/logout
endpoint allows users to log out and invalidate their access token, thereby revoking access to protected resources.
Method:
POST
Response:
Upon successful logout, the endpoint returns a confirmation message in the response body.
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Success
The response is of type object
.