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

@ -29,7 +29,7 @@ export class ApiKeyService {
name: string,
expiresAt?: Date | string,
): Promise<AuthToken> {
const secret = this.environmentService.getApiTokenSecret();
const secret = this.environmentService.getAccessTokenSecret();
let expiresIn: string | number;
let expirationDate: Date;
const now = new Date().getTime();