mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
refactor(api): 🛂 Increase JWT cookie lifetime to 2 weeks
This commit is contained in:
parent
eb466a0cc7
commit
79cf43d752
|
|
@ -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()}`,
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in a new issue