/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.
- message (string): A confirmation message indicating successful logout.
Authentication
This endpoint requires authentication. Include your bearer token in the Authorization header.Responses
ā 200 - Success
ā ļø 401 - Unauthorized
ā ļø 404 - Not Found
ā 500 - Internal Server Error
Tags
Auth
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Response
Success