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:
@ -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()
|
||||
|
||||
Reference in New Issue
Block a user