Sample session · SHORE-1001
Explore the illustrative session
The illustrative session is operator-issued one seat at a time. One response never contains both seats, and the server secret is never embedded in browser code.
Operator steps
- In the server environment, set
ALLOW_DEMO_OPERATOR=1andDEMO_OPERATOR_SECRETto a private value of at least 24 characters. Leave both unset on a shared server.VERCEL_ENV=productionorpreviewdisables the route even if those values are present. - Restart the local server so it reads the environment.
- Request one seat from your shell:
curl -sS -X POST http://127.0.0.1:3010/api/demo/enter \ -H "content-type: application/json" \ -H "x-demo-operator: $DEMO_OPERATOR_SECRET" \ -d '{"role":"A"}' - Paste that JSON on the right and open the seat. A second browser needs a second request with
{"role":"B"}.
Resetting the sample
Reset is also operator-only: curl -sS -X POST http://127.0.0.1:3010/api/demo/reset -H "x-demo-operator: $DEMO_OPERATOR_SECRET". It rewrites the illustrative session only. Sessions you created stay intact.
Open a seat
Session code SHORE-1001. The credential expires, is not a recovery key, and is never listed to other visitors.