feat: Implement comprehensive user authentication with JWT, social login, and password management.
This commit is contained in:
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user