diff --git a/server/main.ts b/server/main.ts index 5da67db..2110d08 100644 --- a/server/main.ts +++ b/server/main.ts @@ -821,11 +821,9 @@ app.post("/api/login/verify", async (c) => { const cookieDomain = getCookieDomain(rpID); - // Clear any existing host-scoped cookie to prevent domain duplication - deleteCookie(c, "session_id", { path: "/" }); - setCookie(c, "session_id", sessionId, { domain: cookieDomain, + path: "/", httpOnly: true, secure: true, sameSite: "Lax", diff --git a/ui/components/AuthenticatedLayout.tsx b/ui/components/AuthenticatedLayout.tsx index 77373a6..7d87f43 100644 --- a/ui/components/AuthenticatedLayout.tsx +++ b/ui/components/AuthenticatedLayout.tsx @@ -159,7 +159,7 @@ export const AuthenticatedLayout = ({ - +
diff --git a/ui/components/LoginPage.tsx b/ui/components/LoginPage.tsx index 097d8ae..d5a5b49 100644 --- a/ui/components/LoginPage.tsx +++ b/ui/components/LoginPage.tsx @@ -95,7 +95,7 @@ export const LoginPage = () => { - + +