From 61aec74062921e5626e540e0efc9f710da60f584 Mon Sep 17 00:00:00 2001 From: Paul Asjes Date: Thu, 12 Dec 2024 11:08:32 +0100 Subject: [PATCH] Always set ttl to 0 (#149) --- src/session.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/session.ts b/src/session.ts index 0f49c3e..c48601e 100644 --- a/src/session.ts +++ b/src/session.ts @@ -21,7 +21,10 @@ const signUpPathsHeaderName = 'x-sign-up-paths'; const JWKS = createRemoteJWKSet(new URL(workos.userManagement.getJwksUrl(WORKOS_CLIENT_ID))); async function encryptSession(session: Session) { - return sealData(session, { password: WORKOS_COOKIE_PASSWORD }); + return sealData(session, { + password: WORKOS_COOKIE_PASSWORD, + ttl: 0, + }); } async function updateSession(