> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fucksornot.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Logout

End the current session and revoke the JWT token.

## Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST https://fucksornot.com/api/auth/logout \
    -H "Cookie: auth-token=YOUR_JWT_TOKEN"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://fucksornot.com/api/auth/logout', {
    method: 'POST',
    credentials: 'include'
  });
  ```
</CodeGroup>

## Response

```json theme={null}
{
  "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
