Skip to content

Commit

Permalink
Always set ttl to 0 (#37)
Browse files Browse the repository at this point in the history
* Always set ttl to 0

* version bump
  • Loading branch information
PaulAsjes authored Dec 12, 2024
1 parent cd25a09 commit a68475b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@workos-inc/authkit-remix",
"version": "0.7.0",
"version": "0.7.1",
"description": "Authentication and session helpers for using WorkOS & AuthKit with Remix",
"sideEffects": false,
"type": "commonjs",
Expand Down
5 changes: 4 additions & 1 deletion src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ async function updateSession(request: Request, debug: boolean) {
}

async function encryptSession(session: Session) {
return sealData(session, { password: WORKOS_COOKIE_PASSWORD });
return sealData(session, {
password: WORKOS_COOKIE_PASSWORD,
ttl: 0,
});
}

type LoaderValue<Data> = Response | TypedResponse<Data> | NonNullable<Data> | null;
Expand Down
2 changes: 1 addition & 1 deletion src/workos.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { WorkOS } from '@workos-inc/node';
import { WORKOS_API_HOSTNAME, WORKOS_API_HTTPS, WORKOS_API_KEY, WORKOS_API_PORT } from './env-variables.js';

const VERSION = '0.7.0';
const VERSION = '0.7.1';

const options = {
apiHostname: WORKOS_API_HOSTNAME,
Expand Down

0 comments on commit a68475b

Please sign in to comment.