aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/services/session.server.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-28 00:08:12 +0900
committernsfisis <nsfisis@gmail.com>2024-07-28 00:45:19 +0900
commit519008c4bae3db046004e4bc2aaa23a2e66311c7 (patch)
tree4674b807c4e32efd9919e6ab90019e5b68a84d19 /frontend/app/services/session.server.ts
parent3ca36032c7aabbc7b8cee8f0f59d18d1264242ae (diff)
downloadphperkaigi-2025-albatross-519008c4bae3db046004e4bc2aaa23a2e66311c7.tar.gz
phperkaigi-2025-albatross-519008c4bae3db046004e4bc2aaa23a2e66311c7.tar.zst
phperkaigi-2025-albatross-519008c4bae3db046004e4bc2aaa23a2e66311c7.zip
frontend: jwt
Diffstat (limited to 'frontend/app/services/session.server.ts')
-rw-r--r--frontend/app/services/session.server.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/frontend/app/services/session.server.ts b/frontend/app/services/session.server.ts
new file mode 100644
index 0000000..2000853
--- /dev/null
+++ b/frontend/app/services/session.server.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
+ },
+});