rallly/packages/backend/session-config.ts
2023-07-17 18:20:04 +01:00

8 lines
225 B
TypeScript

export const sessionConfig = {
password: process.env.SECRET_PASSWORD ?? "",
cookieName: "rallly-session",
cookieOptions: {
secure: process.env.NODE_ENV === "production",
},
ttl: 60 * 60 * 24 * 30, // 30 days
};