> ## 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.

# Check Status

Verify if the current session is authenticated and retrieve user information.

## Request

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

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

## Response

### Authenticated User

```json theme={null}
{
  "authenticated": true,
  "userId": "550e8400-e29b-41d4-a716-446655440000",
  "isAdmin": false,
  "mfaEnabled": true,
  "user": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "username": "johndoe",
    "email": "user@example.com"
  }
}
```

### Not Authenticated

If there is no valid `auth-token` cookie, the endpoint responds with a `401` error:

```json theme={null}
{
  "statusCode": 401,
  "statusMessage": "Unauthorized",
  "message": "Not authenticated"
}
```

## Use Cases

* Verify token validity on app startup
* Check if MFA is enabled for the user
* Determine admin status for UI display
