refactor(server): api key auth (#3054)

This commit is contained in:
Jason Rasmussen
2023-06-30 21:49:30 -04:00
committed by GitHub
parent f9671dfbf7
commit 399312ead3
7 changed files with 53 additions and 66 deletions

View File

@@ -12,3 +12,15 @@ export class APIKeyUpdateDto {
@IsNotEmpty()
name!: string;
}
export class APIKeyCreateResponseDto {
secret!: string;
apiKey!: APIKeyResponseDto;
}
export class APIKeyResponseDto {
id!: string;
name!: string;
createdAt!: Date;
updatedAt!: Date;
}