Skip to main content
End the current session and revoke the JWT token.

Request

curl -X POST https://api.fucksornot.com/api/auth/logout \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Response

{
  "success": true
}

Notes

  • The JWT token is added to a blacklist and can no longer be used
  • Session cookies are cleared
  • API tokens are not affected by logout