Akshar2325
✨ feat(super-admin-2fa): introduce two-factor authentication
add3ead
Raw
History Blame
341 Bytes
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;
}