feat: Implement two-factor authentication (2FA) with dedicated endpoints for setup, enabling, disabling, verification, and backup code management.

This commit is contained in:
pradeepkumar
2026-02-06 09:30:12 +05:30
parent ea05e18c15
commit 750cb55764
10 changed files with 989 additions and 19 deletions

View File

@@ -5,6 +5,7 @@ import { ConfigModule, ConfigService } from '@nestjs/config';
import { AuthController } from './auth.controller';
import { AuthService } from './auth.service';
import { TwoFactorService } from './two-factor/two-factor.service';
import { JwtStrategy } from './strategies';
import { PrismaModule } from '../prisma';
@@ -27,7 +28,7 @@ import { PrismaModule } from '../prisma';
}),
],
controllers: [AuthController],
providers: [AuthService, JwtStrategy],
exports: [AuthService, JwtModule, PassportModule],
providers: [AuthService, TwoFactorService, JwtStrategy],
exports: [AuthService, TwoFactorService, JwtModule, PassportModule],
})
export class AuthModule {}