Files
libredesk/scripts/widget-jwt-test/README.md
T
Abhinav Raut afb338cb54 address PR review findings in the AI agent
Thread context through provider calls so cancelled requests stop retrying, make snippet delete and FAQ review transitions atomic, cap provider response reads, guard stale AI replies and copilot responses from overwriting newer conversation state, and stop logging raw search queries and chunk content.
2026-07-14 01:17:47 +05:30

23 lines
849 B
Markdown

# Livechat widget JWT test page
A single-file page for testing the livechat widget's JWT contact authentication
locally. Signs an HS256 JWT in the browser from an editable payload and loads the
widget with it, or as an anonymous visitor with the JWT checkbox off.
## Run
Serve the file over HTTP (the widget won't load from `file://`):
```shell
python -m http.server 8005
```
Open `http://localhost:8005`, then fill in:
- **baseURL**: your Libredesk instance (default `http://localhost:8001` - Default points to the widget dev server, not the API server)
- **inboxID**: the livechat inbox's UUID (from the inbox's installation snippet)
- **Signing secret**: the "Secret Key" from that inbox's Security tab
`exp` is set to now + 1 hour on every generate. Use "Clear session" to drop the
widget's cookies and start over as a brand-new visitor.