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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;
}