fix(cookies): all cookies now last for a year
This commit is contained in:
committed by
Benedikt Rötsch
parent
219824b413
commit
456d0e65c5
4
app.js
4
app.js
@@ -51,7 +51,7 @@ app.use(async function (req, res, next) {
|
||||
cda: delivery_access_token,
|
||||
cpa: preview_access_token
|
||||
}
|
||||
res.cookie('theExampleAppSettings', settings, { maxAge: 900000, httpOnly: true })
|
||||
res.cookie('theExampleAppSettings', settings, { maxAge: 31536000, httpOnly: true })
|
||||
}
|
||||
|
||||
// Allow enabling of editorial features via query parameters
|
||||
@@ -62,7 +62,7 @@ app.use(async function (req, res, next) {
|
||||
...settings,
|
||||
editorialFeatures: true
|
||||
}
|
||||
res.cookie('theExampleAppSettings', settings, { maxAge: 900000, httpOnly: true })
|
||||
res.cookie('theExampleAppSettings', settings, { maxAge: 31536000, httpOnly: true })
|
||||
}
|
||||
|
||||
initClient(settings)
|
||||
|
||||
Reference in New Issue
Block a user