Fix api keys (#2116)

* Distinguish local env variables

* Remove api token secret
This commit is contained in:
martmull
2023-10-19 11:07:40 +02:00
committed by GitHub
parent 09fe29e559
commit b904397599
6 changed files with 4 additions and 14 deletions

View File

@ -69,10 +69,6 @@ export class EnvironmentService {
return this.configService.get<string>('LOGIN_TOKEN_SECRET')!;
}
getApiTokenSecret(): string {
return this.configService.get<string>('API_TOKEN_SECRET')!;
}
getLoginTokenExpiresIn(): string {
return this.configService.get<string>('LOGIN_TOKEN_EXPIRES_IN') ?? '15m';
}

View File

@ -82,8 +82,6 @@ export class EnvironmentVariables {
@IsString()
LOGIN_TOKEN_SECRET: string;
@IsString()
API_TOKEN_SECRET: string;
@IsDuration()
@IsOptional()
LOGIN_TOKEN_EXPIRES_IN: string;