Install
- Node.js 22+ (or any environment with
fetch) - TypeScript 5+ (optional but recommended)
Configure
Simple (base URL only)
Full options
Options
| Option | Type | Default | Description |
|---|---|---|---|
baseUrl | string | Required | API server URL |
credentials | string | 'include' | Fetch credentials mode |
headers | object | {} | Custom headers for every request |
Browser usage
In the browser, cookies are handled automatically. The SDK sendscredentials: 'include' so the session cookie is attached to every request.