blob: 2d9a6522bfcf9c66cb7c93a17d0d1d73d6b038ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { createCookieSessionStorage } from "react-router";
export const cookieOptions = {
sameSite: "lax" as const,
path: "/",
httpOnly: true,
secure: process.env.NODE_ENV === "production",
secrets: [process.env.ALBATROSS_COOKIE_SECRET ?? "local"],
};
export const sessionStorage = createCookieSessionStorage({
cookie: {
name: "albatross_session",
...cookieOptions,
},
});
|