web-service/apps/freeblox-web-service/src/services/auth/dtos/challenge-request.dto.ts

14 lines
321 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { AuthChallenge } from 'apps/auth/src/enums/challenge.enum';
export class ChallengeRequestDto {
@ApiProperty({ type: String, enum: AuthChallenge })
challenge: AuthChallenge;
@ApiProperty()
secret: string;
@ApiProperty()
body: Record<string, string>;
}