From 43b4e224dd50ffc9111794dbbb67c33b501d4be0 Mon Sep 17 00:00:00 2001 From: Pranav C Date: Wed, 13 Nov 2024 07:30:19 +0000 Subject: [PATCH] refactor: set default refresh token expiry to 30 days --- packages/nocodb/src/constants/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nocodb/src/constants/index.ts b/packages/nocodb/src/constants/index.ts index d671871dd5..304359ee3d 100644 --- a/packages/nocodb/src/constants/index.ts +++ b/packages/nocodb/src/constants/index.ts @@ -7,7 +7,7 @@ export const NC_ATTACHMENT_FIELD_SIZE = export const NC_MAX_ATTACHMENTS_ALLOWED = +process.env['NC_MAX_ATTACHMENTS_ALLOWED'] || 10; export const NC_REFRESH_TOKEN_EXP_IN_DAYS = - parseInt(process.env.NC_REFRESH_TOKEN_EXP_IN_DAYS, 10) || 90; + parseInt(process.env.NC_REFRESH_TOKEN_EXP_IN_DAYS, 10) || 30; // throw error if user provided invalid value if (!NC_REFRESH_TOKEN_EXP_IN_DAYS || NC_REFRESH_TOKEN_EXP_IN_DAYS <= 0) {