/** * stacksjs/stacks#2236 — the auth cookie had two names and they never met. * * `authCookie()` wrote `stacks_auth`, resolved from `config.auth.cookie.name`, * a key that did not exist on `AuthOptions` — so no app closing its config with * `satisfies AuthConfig` could even set it, and the documented override was * unreachable. Meanwhile the framework default Auth middleware, the userland * middleware, `team.ts`'s team resolver and the stx page gate all read * `config.auth.defaultTokenName`, i.e. `auth-token`. * * So a cookie the framework set was never a cookie the framework read. Nothing * called `authCookie()` at all, which is how it survived: the whole cookie * handoff was shipped, exported from `@stacksjs/auth`, documented with a * worked example — and inert. Apps that wanted a browser session after an * OAuth redirect had no working path, and hand-serialized a token pack into * `localStorage` from an inline `