From 0b509f2a29b6501e54ff511affd65cf9e532e60d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benedikt=20R=C3=B6tsch?= Date: Thu, 9 Nov 2017 13:07:11 +0100 Subject: [PATCH] fix(cookies): fix variable naming and extend to two days maxAge --- lib/cookies.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/cookies.js b/lib/cookies.js index 8ceb4b7..c74f45c 100644 --- a/lib/cookies.js +++ b/lib/cookies.js @@ -1,4 +1,4 @@ -const ONE_YEAR_IN_SECONDS = 86400 +const TWO_DAYS_IN_SECONDS = 172800 // 60 * 60 * 24 * 2 module.exports.updateCookie = (response, cookieName, value) => { - response.cookie(cookieName, value, { maxAge: ONE_YEAR_IN_SECONDS, httpOnly: true }) + response.cookie(cookieName, value, { maxAge: TWO_DAYS_IN_SECONDS, httpOnly: true }) }