Widget Identity Verification
Widget identity determines whether Woes treats a visitor as anonymous, display-only, or verified. It is configured per agent widget key from Settings → Security, so each site can use the agent and trust model that matches that install.Identity Modes
Recommended Path
- Select the agent widget key installed on the site.
- Start anonymous for public docs or marketing pages.
- Add display identity for signed-in product pages.
- Use HMAC or JWT before showing account-specific history.
- Use Copy prompt for AI install to generate implementation instructions for your codebase.
- Keep signing secrets only on your backend.
Verified Identity Install Shape
Verified identity has two pieces: a public widget key in the browser and a private signing secret on your server.
Create an authenticated, no-store backend endpoint, such as
/api/woes-identity, that returns the signed identity proof for the current logged-in user. Browser code should fetch that endpoint after login/session load, when widget.js loads, on window focus, and when the page becomes visible again.
Calling window.Woes("identify", ...) more than once for the same current user is safe. Retrying prevents boot-order races from leaving a logged-in customer anonymous.
Read the full security guide in Widget Identity.