Skip to content

Commit

Permalink
Always set ttl to 0 (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulAsjes authored Dec 12, 2024
1 parent 3052db7 commit 61aec74
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 61aec74

Please sign in to comment.