From 35f15ebc061076709293bbe4e3e2ace78ac79445 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 3 Mar 2026 13:37:47 -0800 Subject: static landing page with single Start Now button Prerender the landing page, replace conditional auth header buttons with a single "Start Now" that checks the username cookie client-side. Set username cookie httpOnly: false in all login/register flows. Co-Authored-By: Claude Opus 4.6 --- src/routes/(static)/register/auth/+page.server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/routes/(static)/register/auth') diff --git a/src/routes/(static)/register/auth/+page.server.ts b/src/routes/(static)/register/auth/+page.server.ts index 06735396..29e9a3f8 100644 --- a/src/routes/(static)/register/auth/+page.server.ts +++ b/src/routes/(static)/register/auth/+page.server.ts @@ -88,7 +88,7 @@ export const actions = { expires.setSeconds(expires.getSeconds() + maxAge); const opts = { path: "/", expires }; - cookies.set("username", username, opts); + cookies.set("username", username, { ...opts, httpOnly: false }); cookies.set("token", token, opts); if (sk) { -- cgit v1.2.3