mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 10:46:35 +02:00
9 lines
272 B
TypeScript
9 lines
272 B
TypeScript
export const sessionConfig = {
|
|
password: process.env.SECRET_PASSWORD ?? "",
|
|
cookieName: "rallly-session",
|
|
cookieOptions: {
|
|
secure: process.env.NODE_ENV === "production",
|
|
domain: process.env.SESSION_COOKIE_DOMAIN,
|
|
},
|
|
ttl: 60 * 60 * 24 * 30, // 30 days
|
|
};
|