feat: Change cookie age to 24h

This commit is contained in:
Khaled Garbaya
2017-11-06 11:23:49 +01:00
committed by Benedikt Rötsch
parent 9f61d33500
commit 9ae9c543ba

View File

@@ -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 })
}