aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/.server/session.ts
blob: 79810f4a0ef2d868ae8c5739c1d3ac328de8d373 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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
	},
});