feat: Implement two-factor authentication (2FA) with dedicated endpoints for setup, enabling, disabling, verification, and backup code management.
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user