/** * The storefront pages find the cart the shopper's signed cookie names, and * say so in the log when they cannot read it. * * The cart, the three checkout steps and the storefront header each look the * shopper's cart up by the `stacks_cart` cookie. The storefront actions write * that cookie HMAC-signed, as the token, a dot and the signature * (`writeCartCookie` in app/Storefront/CartCookie.ts), and these pages looked * up the whole value, so they matched no cart a shopper had. They now verify * the cookie the way the actions do and look up the token, and refuse an * unsigned or tampered value outright. * * Every way their database read could fail used to render an empty cart * without a word in any log (app/Storefront/StorefrontDatabase.ts lists them). * The cases below that break the read check both halves: the page still * degrades to its empty cart, and a warning names the page and the reason. * * This runs each page's own `