This template demonstrates SessionPlugin — payer-scoped key-value storage gated by x402 payment identity. Each x402 signer gets isolated storage that persists across requests. Two different payers never see each other’s data.
SessionPlugin is auto-registered by the build pipeline. To customize the store, create app/session.ts:
app/session.ts
import { defineSessionStore, InMemorySessionStore } from "aixyz/app/plugins/session";// Use the built-in in-memory store. Replace with Redis, DB, etc. for production.export default defineSessionStore(new InMemorySessionStore());
If app/session.ts is not present, the default InMemorySessionStore is used automatically.