From 2d8abef537d28b7de36cb4398987dd3a0af294b7 Mon Sep 17 00:00:00 2001 From: Joonatan Korpela Date: Sun, 11 Aug 2024 19:08:36 +0300 Subject: [PATCH] feat: Extend admin auth session to 3 hours --- .../ilmomasiina-backend/src/authentication/adminAuthSession.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ilmomasiina-backend/src/authentication/adminAuthSession.ts b/packages/ilmomasiina-backend/src/authentication/adminAuthSession.ts index bffae342..77a010e6 100644 --- a/packages/ilmomasiina-backend/src/authentication/adminAuthSession.ts +++ b/packages/ilmomasiina-backend/src/authentication/adminAuthSession.ts @@ -12,7 +12,7 @@ export interface AdminTokenData { export default class AdminAuthSession { /** Session lifetime in seconds */ - static TTL = config.nodeEnv === "development" ? 365 * 24 * 60 * 60 : 10 * 60; + static TTL = config.nodeEnv === "development" ? 365 * 24 * 60 * 60 : 60 * 60 * 3; private readonly sign: typeof SignerSync; private readonly verify: typeof VerifierSync;