refactor(api): 🛂 Increase JWT cookie lifetime to 2 weeks

This commit is contained in:
Jesse Wierzbinski 2024-11-25 20:25:42 +01:00
parent eb466a0cc7
commit 79cf43d752
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -227,7 +227,8 @@ export default apiRoute((app) =>
secure: true,
sameSite: "Strict",
path: "/",
maxAge: 60 * 60,
// 2 weeks
maxAge: 60 * 60 * 24 * 14,
});
return context.redirect(
`${config.frontend.routes.consent}?${searchParams.toString()}`,

View file

@ -332,7 +332,8 @@ export default (plugin: PluginType): void => {
secure: true,
sameSite: "strict",
path: "/",
maxAge: 60 * 60,
// 2 weeks
maxAge: 60 * 60 * 24 * 14,
});
return context.redirect(