Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/harshalw2003/BidAuc/llms.txt

Use this file to discover all available pages before exploring further.

Logging out clears the token cookie from the browser and invalidates the stored token on the server, ensuring the JWT can no longer be used. This endpoint requires an active authenticated session — the token cookie must be present and valid for the request to succeed.

Endpoint

POST /user/logout
Authentication required. The request must include a valid token cookie issued by a prior login or registration.

Request body

No request body is required.

Example request

curl -X POST http://localhost:5000/user/logout \
  -b cookies.txt
Pass -b cookies.txt to include the session cookie saved during login or registration.

Response

Success — 200 OK

{
  "success": true,
  "message": "User logged out successfully"
}
success
boolean
true when the session was cleared successfully.
message
string
Confirmation that the user has been logged out.

Error — already logged out

{
  "success": false,
  "message": "User Already logged out"
}
success
boolean
false when no active session was found to clear.
message
string
Indicates the session was already inactive before this request.

Build docs developers (and LLMs) love