aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/.server/session.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-28 02:11:30 +0900
committernsfisis <nsfisis@gmail.com>2024-07-28 02:11:30 +0900
commit7468748c141943fa000edea4098d54bf3cdff55e (patch)
treec381d9479e3542e13512c696ad0859b141f51549 /frontend/app/.server/session.ts
parent6603d3ea5a54647e8eda8ec253835eb7a36e5eb2 (diff)
downloadiosdc-japan-2025-albatross-7468748c141943fa000edea4098d54bf3cdff55e.tar.gz
iosdc-japan-2025-albatross-7468748c141943fa000edea4098d54bf3cdff55e.tar.zst
iosdc-japan-2025-albatross-7468748c141943fa000edea4098d54bf3cdff55e.zip
frontend: openapi
Diffstat (limited to 'frontend/app/.server/session.ts')
-rw-r--r--frontend/app/.server/session.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/frontend/app/.server/session.ts b/frontend/app/.server/session.ts
new file mode 100644
index 0000000..2000853
--- /dev/null
+++ b/frontend/app/.server/session.ts
@@ -0,0 +1,13 @@
+import { createCookieSessionStorage } from "@remix-run/node";
+
+export const sessionStorage = createCookieSessionStorage({
+ cookie: {
+ name: "albatross_session",
+ sameSite: "lax",
+ path: "/",
+ httpOnly: true,
+ secrets: ["TODO"],
+ // secure: process.env.NODE_ENV === "production",
+ secure: false, // TODO
+ },
+});