feat: Change cookie age to 24h
This commit is contained in:
committed by
Benedikt Rötsch
parent
9f61d33500
commit
9ae9c543ba
@@ -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 })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user