From 612428eeb3e638b655d93e23045f6a21ba0ba3db Mon Sep 17 00:00:00 2001 From: Weiko Date: Tue, 3 Sep 2024 17:00:19 +0200 Subject: [PATCH] update refresh token expires in (#6879) Fixes https://github.com/twentyhq/twenty/issues/6598 Updating the refresh token default value to a much more common threshold, this can still be overridden with env variables when needed. Example of the refresh token mechanism from the fronted side Screenshot 2024-09-03 at 16 05 12 Screenshot 2024-09-03 at 16 05 22 --- .../engine/integrations/environment/environment-variables.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/twenty-server/src/engine/integrations/environment/environment-variables.ts b/packages/twenty-server/src/engine/integrations/environment/environment-variables.ts index f72edbff4..373edd4cb 100644 --- a/packages/twenty-server/src/engine/integrations/environment/environment-variables.ts +++ b/packages/twenty-server/src/engine/integrations/environment/environment-variables.ts @@ -130,7 +130,7 @@ export class EnvironmentVariables { @IsDuration() @IsOptional() - REFRESH_TOKEN_EXPIRES_IN = '30m'; + REFRESH_TOKEN_EXPIRES_IN = '60d'; @IsDuration() @IsOptional()