Skip to content

Commit

Permalink
feat: Set cookie maxAge, closes #17
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Nov 27, 2024
1 parent f2fb92e commit 9461d54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async function main() {
saveUninitialized: false,
unset: "destroy",
// Default is { path: '/', httpOnly: true, secure: false, maxAge: null }
cookie: { secure: true },
cookie: { secure: true, maxAge: 604800000 }, // 1 week in ms
}),
);

Expand Down

0 comments on commit 9461d54

Please sign in to comment.