Skip to content

Commit a68475b

Browse files
author
Paul Asjes
authored
Always set ttl to 0 (#37)
* Always set ttl to 0 * version bump
1 parent cd25a09 commit a68475b

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@workos-inc/authkit-remix",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "Authentication and session helpers for using WorkOS & AuthKit with Remix",
55
"sideEffects": false,
66
"type": "commonjs",

src/session.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ async function updateSession(request: Request, debug: boolean) {
6868
}
6969

7070
async function encryptSession(session: Session) {
71-
return sealData(session, { password: WORKOS_COOKIE_PASSWORD });
71+
return sealData(session, {
72+
password: WORKOS_COOKIE_PASSWORD,
73+
ttl: 0,
74+
});
7275
}
7376

7477
type LoaderValue<Data> = Response | TypedResponse<Data> | NonNullable<Data> | null;

src/workos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { WorkOS } from '@workos-inc/node';
22
import { WORKOS_API_HOSTNAME, WORKOS_API_HTTPS, WORKOS_API_KEY, WORKOS_API_PORT } from './env-variables.js';
33

4-
const VERSION = '0.7.0';
4+
const VERSION = '0.7.1';
55

66
const options = {
77
apiHostname: WORKOS_API_HOSTNAME,

0 commit comments

Comments
 (0)