feat: Implement comprehensive user authentication with JWT, social login, and password management.

This commit is contained in:
pradeepkumar
2025-12-20 19:22:30 +05:30
parent 1812fd3c98
commit 158a617600
26 changed files with 1608 additions and 4 deletions

View File

@@ -7,6 +7,8 @@ import { EventEmitterModule } from '@nestjs/event-emitter';
import { configuration } from './config';
import { PrismaModule } from './prisma';
import { AuthModule, JwtAuthGuard, RolesGuard } from './auth';
import { UsersModule } from './users';
import { AppController } from './app.controller';
import { AppService } from './app.service';
@@ -36,10 +38,9 @@ import { AppService } from './app.service';
// Database
PrismaModule,
// Feature Modules (will be added as we develop them)
// AuthModule,
// UsersModule,
// AgentsModule,
// Feature Modules
AuthModule,
UsersModule,
],
controllers: [AppController],
providers: [
@@ -49,6 +50,16 @@ import { AppService } from './app.service';
provide: APP_GUARD,
useClass: ThrottlerGuard,
},
// Global JWT Auth Guard
{
provide: APP_GUARD,
useClass: JwtAuthGuard,
},
// Global Roles Guard
{
provide: APP_GUARD,
useClass: RolesGuard,
},
],
})
export class AppModule {}