aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/services/session.server.ts
diff options
context:
space:
mode:
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
+ },
+});