mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-29 10:16:32 +02:00
8 lines
253 B
TypeScript
8 lines
253 B
TypeScript
export const sessionConfig = {
|
|
password: process.env.SECRET_PASSWORD ?? "",
|
|
cookieName: "rallly-session",
|
|
cookieOptions: {
|
|
secure: process.env.NEXT_PUBLIC_BASE_URL?.startsWith("https://") ?? false,
|
|
},
|
|
ttl: 60 * 60 * 24 * 30, // 30 days
|
|
};
|