From b3f43bf2e59e34730a7d760318d29ec18f15ac5d Mon Sep 17 00:00:00 2001 From: pradeepkumar Date: Sat, 7 Mar 2026 09:03:02 +0530 Subject: [PATCH] feat: Update default JWT access token expiration to 7 days and refresh token expiration to 365 days. --- src/config/configuration.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config/configuration.ts b/src/config/configuration.ts index c28909e..afee919 100644 --- a/src/config/configuration.ts +++ b/src/config/configuration.ts @@ -17,8 +17,8 @@ export default () => ({ // JWT Authentication jwt: { secret: process.env.JWT_SECRET || 'super-secret-key', - accessExpiration: process.env.JWT_ACCESS_EXPIRATION || '2h', - refreshExpiration: process.env.JWT_REFRESH_EXPIRATION || '30d', + accessExpiration: process.env.JWT_ACCESS_EXPIRATION || '7d', + refreshExpiration: process.env.JWT_REFRESH_EXPIRATION || '365d', }, // Password Hashing