feat: Update default JWT access token expiration to 7 days and refresh token expiration to 365 days.

This commit is contained in:
pradeepkumar
2026-03-07 09:03:02 +05:30
parent 0487d1caca
commit b3f43bf2e5

View File

@@ -17,8 +17,8 @@ export default () => ({
// JWT Authentication // JWT Authentication
jwt: { jwt: {
secret: process.env.JWT_SECRET || 'super-secret-key', secret: process.env.JWT_SECRET || 'super-secret-key',
accessExpiration: process.env.JWT_ACCESS_EXPIRATION || '2h', accessExpiration: process.env.JWT_ACCESS_EXPIRATION || '7d',
refreshExpiration: process.env.JWT_REFRESH_EXPIRATION || '30d', refreshExpiration: process.env.JWT_REFRESH_EXPIRATION || '365d',
}, },
// Password Hashing // Password Hashing