feat(api-key): Allow revoking in the future, and enforce the secret key (#6484)
Since there is quite a bit of code here already, I'll do the middleware changes in a separate PR
This commit is contained in:
@@ -3,6 +3,7 @@ import { Type } from "class-transformer"
|
||||
import {
|
||||
IsArray,
|
||||
IsEnum,
|
||||
IsNumber,
|
||||
IsOptional,
|
||||
IsString,
|
||||
ValidateNested,
|
||||
@@ -65,6 +66,10 @@ export class AdminPostApiKeysApiKeyReq {
|
||||
title: string
|
||||
}
|
||||
|
||||
export class AdminRevokeApiKeysApiKeyReq {}
|
||||
export class AdminRevokeApiKeysApiKeyReq {
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
revoke_in?: number
|
||||
}
|
||||
|
||||
export class AdminDeleteApiKeysApiKeyReq {}
|
||||
|
||||
Reference in New Issue
Block a user