Skip to content

Commit

Permalink
fix bug setting max age
Browse files Browse the repository at this point in the history
  • Loading branch information
MadeByMike committed Sep 11, 2019
1 parent 24aa382 commit 69a3196
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/session/lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ const commonSessionMiddleware = ({
resave: false,
saveUninitialized: false,
name: COOKIE_NAME,
cookie: { secure: secureCookies },
cookie: { secure: secureCookies, maxAge: cookieMaxAge },
store: sessionStore,
maxAge: cookieMaxAge,
});

return [injectAuthCookieMiddleware, sessionMiddleware, populateAuthedItemMiddleware(keystone)];
Expand Down

0 comments on commit 69a3196

Please sign in to comment.