Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Fix edit link expiring after 15 minutes

Luke Vellaa956f370b729
diff --git a/apps/web/src/utils/session/index.ts b/apps/web/src/utils/session/index.ts
index 1328b2367..bdca61678 100644
--- a/apps/web/src/utils/session/index.ts
+++ b/apps/web/src/utils/session/index.ts
@@ -35,6 +35,6 @@ export const createToken = async <T extends Record<string, unknown>>(
) => {
return await sealData(payload, {
password: sessionConfig.password,
- ttl: options?.ttl ?? 60 * 15, // 15 minutes
+ ttl: options?.ttl !== undefined ? options.ttl : 60 * 15, // 15 minutes
});
};