Added AuthModule with services, controllers, and guards for authentication. Implements session management, role-based access control, 2FA, and DTOs for user login, registration, and token refresh.
11 lines
170 B
TypeScript
11 lines
170 B
TypeScript
import { IsNotEmpty, IsString, IsUUID } from "class-validator";
|
|
|
|
export class Verify2faDto {
|
|
@IsUUID()
|
|
userId!: string;
|
|
|
|
@IsString()
|
|
@IsNotEmpty()
|
|
token!: string;
|
|
}
|