Skip to content

Commit

Permalink
Remove expires default
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpittman committed Jul 27, 2022
1 parent 9382b3a commit f7f457b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { getPagesContext } from "./index";

let SECONDS_IN_DAY = 86400;
let YEAR = SECONDS_IN_DAY * 365;
let expires = new Date(Date.now() + YEAR * 1000);
let maxAge = YEAR;

export let getSessionStorage = (
Expand All @@ -20,7 +19,6 @@ export let getSessionStorage = (
invariant(env.KV, "KV namespace, KV, is not defined");

let cookie = createCookie("__session", {
expires,
maxAge,
secrets: [env.SESSION_SECRET],
httpOnly: true,
Expand Down

0 comments on commit f7f457b

Please sign in to comment.