Production-tested patterns and boilerplate code to connect Playground API to TanStack Query, Next.js 15 Server Actions, Axios, Vue 3, Svelte 5, and Playwright E2E suites.
When querying from a browser, always specify credentials: 'include' (or Axios withCredentials: true) to ensure the HMAC session cookie is preserved.
In automated test runners (Cypress, Playwright), use X-Playground-Identity: [test-id]. This guarantees parallel test workers never interfere with each other.
In test afterEach or beforeEach hooks, issue a DELETE /session/reset to ensure each test executes against clean baseline data.
Check out the featured React 18 E-Commerce store demo with cart, JWT auth, and dynamic products.