File size: 341 Bytes
add3ead
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { ApiProperty } from '@nestjs/swagger';
import { IsString, IsNotEmpty } from 'class-validator';

export class Disable2FAMethodDto {
  @ApiProperty({
    example: 'EMAIL',
    description: '2FA method to disable',
    enum: ['EMAIL', 'AUTHENTICATOR', 'PASSKEY', 'PUSH_APPROVAL'],
  })
  @IsString()
  @IsNotEmpty()
  method: string;
}