Skip to main content
POST
/
auth
/
logout
Logout
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/auth/logout \
  --header 'Authorization: Bearer <token>'
{
  "message": "Logout successful"
}
/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.

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

Authorization
string
header
required

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

Response

Success

message
string
⌘I