From 9ae9c543baf3aae9b3f0cc6fc8e68a668dd2b75f Mon Sep 17 00:00:00 2001 From: Khaled Garbaya Date: Mon, 6 Nov 2017 11:23:49 +0100 Subject: [PATCH] feat: Change cookie age to 24h --- lib/cookies.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cookies.js b/lib/cookies.js index 34bfa0b..8ceb4b7 100644 --- a/lib/cookies.js +++ b/lib/cookies.js @@ -1,4 +1,4 @@ -const ONE_YEAR_IN_SECONDS = 31536000 +const ONE_YEAR_IN_SECONDS = 86400 module.exports.updateCookie = (response, cookieName, value) => { response.cookie(cookieName, value, { maxAge: ONE_YEAR_IN_SECONDS, httpOnly: true }) }