aboutsummaryrefslogtreecommitdiff

POST /auth/logout

back to auth /// home

Kill your yourself. Requires a valid session token obviously.

Request

No sexy json derulo body needed. Just send the token in the header:

Authorization: Bearer <token>

Success Response

{
  "success": true,
  "message": "Logged out successfully"
}

Error Response

Code When
401 no token provided or token is invalid/expired