Skip to main content

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

  1. Select the agent widget key installed on the site.
  2. Start anonymous for public docs or marketing pages.
  3. Add display identity for signed-in product pages.
  4. Use HMAC or JWT before showing account-specific history.
  5. Use Copy prompt for AI install to generate implementation instructions for your codebase.
  6. Keep signing secrets only on your backend.
Use a different agent widget key and identity secret for each site when the agent behavior, data access, or customer trust level differs.

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.
Last modified on July 2, 2026