blob: 102bcd26e5d2dd0a6b3c205c5e1964931be9eea3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
import { createCookieSessionStorage } from "@remix-run/node";
export const cookieOptions = {
sameSite: "lax" as const,
path: "/",
httpOnly: true,
// secure: process.env.NODE_ENV === "production",
secure: false, // TODO
secrets: ["TODO"],
};
export const sessionStorage = createCookieSessionStorage({
cookie: {
name: "albatross_session",
...cookieOptions,
},
});
|