From 0597c7f6e73a33f9969fbb650456e07c94fc2066 Mon Sep 17 00:00:00 2001 From: M1 Date: Mon, 16 Mar 2026 17:26:56 +0400 Subject: [PATCH] fix: set cookie domain to .pingql.com so it works on both subdomains --- apps/web/src/routes/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/web/src/routes/auth.ts b/apps/web/src/routes/auth.ts index 7268be6..9b814fa 100644 --- a/apps/web/src/routes/auth.ts +++ b/apps/web/src/routes/auth.ts @@ -61,6 +61,7 @@ const COOKIE_OPTS = { secure: true, sameSite: "lax" as const, path: "/", + domain: ".pingql.com", // share across pingql.com and api.pingql.com maxAge: 60 * 60 * 24 * 365, // 1 year };