Parent PRD
#279
What to build
Stop both the package factory and the example app from silently falling back to a hardcoded JWE / HMAC secret when CHECKOUT_SESSION_SECRET is unset in production. Throw at factory construction when NODE_ENV === "production" and the secret is missing or matches a known dev sentinel. Update the example to use process.env.CHECKOUT_SESSION_SECRET! with no string fallback. See PRD §HIGH-2.
Acceptance criteria
Blocked by
None — can start immediately.
User stories addressed
Parent PRD
#279
What to build
Stop both the package factory and the example app from silently falling back to a hardcoded JWE / HMAC secret when
CHECKOUT_SESSION_SECRETis unset in production. Throw at factory construction whenNODE_ENV === "production"and the secret is missing or matches a known dev sentinel. Update the example to useprocess.env.CHECKOUT_SESSION_SECRET!with no string fallback. See PRD §HIGH-2.Acceptance criteria
createEpAuththrows in production when secret is missingcreateEpAuththrows in production when secret matches the dev sentinels currently shippedcreateEpAuthaccepts dev sentinels in non-production with a clear console warningexamples/ep-commerce-app-router/lib/ep-auth.ts) has no string fallbackBlocked by
None — can start immediately.
User stories addressed