feat(F-161): completed feature

This commit is contained in:
chattie
2026-08-22 18:13:37 +02:00
parent 83a44980c6
commit 9152b3a65e
15 changed files with 164 additions and 63 deletions

View File

@@ -342,7 +342,9 @@ export async function buildApp(deps: BuildAppDeps = {}): Promise<FastifyInstance
await app.register(async (instance) => {
await registerCheckoutRoutes(instance, {
pool: deps.pool as pg.Pool,
authenticate: combinedAuth,
// Checkout creates customer-owned orders. Do not use combinedAuth here:
// a coexisting backoffice cookie must never override the storefront user.
authenticate,
tracer: telemetry.tracer,
});
});