Requirements
- A
fetchimplementation. Node 18+, all modern browsers, Deno, Bun, and Cloudflare Workers ship one. On older Node, pass a polyfill viafetchImpl. - One or both credentials, depending on which surfaces you use (see Authentication).
Verify
TypeScript
The package ships its own.d.ts types. All response types are exported from the package root, so you can type your own state directly: