Skip to main content
POST
Logout
This endpoint requires authentication. Include your Bearer token in the Authorization header.

Description

/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.
  • message (string): A confirmation message indicating successful logout.

Code Examples

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Response

Success

message
string