diff options
Diffstat (limited to 'frontend/app/.server/session.ts')
| -rw-r--r-- | frontend/app/.server/session.ts | 13 |
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 + }, +}); |
