Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
add default jwt life time
Maidul Islam9b2a31761a1b
diff --git a/backend/src/config/index.ts b/backend/src/config/index.tsindex 811327defd..33066f613d 100644--- a/backend/src/config/index.ts+++ b/backend/src/config/index.ts@@ -5,12 +5,12 @@ export const getEncryptionKey = () => infisical.get('ENCRYPTION_KEY')!;export const getSaltRounds = () => parseInt(infisical.get('SALT_ROUNDS')!) || 10;export const getJwtAuthLifetime = () => infisical.get('JWT_AUTH_LIFETIME')! || '10d';export const getJwtAuthSecret = () => infisical.get('JWT_AUTH_SECRET')!;-export const getJwtMfaLifetime = () => infisical.get('JWT_MFA_LIFETIME')!;+export const getJwtMfaLifetime = () => infisical.get('JWT_MFA_LIFETIME')! || '5m';export const getJwtMfaSecret = () => infisical.get('JWT_MFA_LIFETIME')! || '5m';export const getJwtRefreshLifetime = () => infisical.get('JWT_REFRESH_LIFETIME')! || '90d';export const getJwtRefreshSecret = () => infisical.get('JWT_REFRESH_SECRET')!;export const getJwtServiceSecret = () => infisical.get('JWT_SERVICE_SECRET')!;-export const getJwtSignupLifetime = () => infisical.get('JWT_SIGNUP_LIFETIME')!;+export const getJwtSignupLifetime = () => infisical.get('JWT_SIGNUP_LIFETIME')! || '15m';export const getJwtSignupSecret = () => infisical.get('JWT_SIGNUP_SECRET')!;export const getMongoURL = () => infisical.get('MONGO_URL')!;export const getNodeEnv = () => infisical.get('NODE_ENV')!;