Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

301 B
Raw Blame
import { ApiProperty } from '@nestjs/swagger'
import { IsNotEmpty, IsString, Matches } from 'class-validator'

export class TwoFactorAuthDTO {
  @ApiProperty({ example: '123456', required: true })
  @IsNotEmpty()
  @IsString()
  @Matches(/^[a-zA-Z0-9]{6,30}$/)
  twoFactorAuthenticationCode: string
}