Reference
Complete technical specifications for the Unchurn widget API, token format, events, environment variables, and error codes.
| Page | Contents |
|---|---|
| Widget API | npm package surface, React components and hook, CDN runtime, createUnchurnHandler — full signatures, parameter tables, return shapes |
| Token format | Signed-token wire format, signing payload, verification rules, TTL (600 s max), language-agnostic signing recipe |
| Events | Every widget-emitted event with its payload shape — subscribe via window.unchurn.events.on |
| Environment variables | Server environment variables and browser CSP requirements |
| Error codes | HTTP error codes returned by the widget session API and the token signing handler |