📈 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!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
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
}