Skip to content

Commit

Permalink
shorter cookie expiries
Browse files Browse the repository at this point in the history
  • Loading branch information
dcousens committed Feb 8, 2024
1 parent 74bf234 commit 336a9af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/pages/docs/walkthroughs/lesson-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const { withAuth } = createAuth({
});
let sessionSecret = '-- DEV COOKIE SECRET; CHANGE ME --';
let sessionMaxAge = 60 * 60 * 24 * 30; // 30 days
let sessionMaxAge = 60 * 60 * 24; // 24 hours
const session = statelessSessions({
maxAge: sessionMaxAge,
Expand Down Expand Up @@ -240,7 +240,7 @@ const { withAuth } = createAuth({
});
let sessionSecret = '-- DEV COOKIE SECRET; CHANGE ME --';
let sessionMaxAge = 60 * 60 * 24 * 30; // 30 days
let sessionMaxAge = 60 * 60 * 24; // 24 hours
const session = statelessSessions({
maxAge: sessionMaxAge,
Expand Down Expand Up @@ -272,7 +272,7 @@ const { withAuth } = createAuth({
});

let sessionSecret = '-- DEV COOKIE SECRET; CHANGE ME --';
let sessionMaxAge = 60 * 60 * 24 * 30; // 30 days
let sessionMaxAge = 60 * 60 * 24; // 24 hours

const session = statelessSessions({
maxAge: sessionMaxAge,
Expand Down
2 changes: 1 addition & 1 deletion examples/auth/keystone.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const sessionSecret = '-- DEV COOKIE SECRET; CHANGE ME --'
// statelessSessions uses cookies for session tracking
// these cookies have an expiry, in seconds
// we use an expiry of one hour for this example
const sessionMaxAge = 60 * 60 * 24
const sessionMaxAge = 60 * 60

// withAuth is a function we can use to wrap our base configuration
const { withAuth } = createAuth({
Expand Down

0 comments on commit 336a9af

Please sign in to comment.