Fix of broken API Auth (#8338)

Fix done this morning with @FelixMalfait  from #8295

---------

Co-authored-by: guillim <guillaume@twenty.com>
Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
Guillim
2024-11-06 14:45:33 +01:00
committed by GitHub
parent 24656e777e
commit 4b5d096441
11 changed files with 309 additions and 67 deletions

View File

@ -137,6 +137,10 @@ export class EnvironmentVariables {
@IsString()
APP_SECRET: string;
@IsOptional()
@IsString()
ACCESS_TOKEN_SECRET: string;
@IsDuration()
@IsOptional()
ACCESS_TOKEN_EXPIRES_IN = '30m';
@ -394,8 +398,6 @@ export class EnvironmentVariables {
})
REDIS_URL: string;
API_TOKEN_EXPIRES_IN = '100y';
SHORT_TERM_TOKEN_EXPIRES_IN = '5m';
@CastToBoolean()