diff --git a/features/client-intel/backend-api/src/app.module.ts b/features/client-intel/backend-api/src/app.module.ts index 8dc580d36..2c69475b0 100644 --- a/features/client-intel/backend-api/src/app.module.ts +++ b/features/client-intel/backend-api/src/app.module.ts @@ -3,6 +3,7 @@ import { buildDeploymentRegistry } from '@lilith/service-registry' import { BullModule } from '@nestjs/bullmq' import { Module } from '@nestjs/common' import { ConfigModule, ConfigService } from '@nestjs/config' +import { JwtModule } from '@nestjs/jwt' import { TypeOrmModule } from '@nestjs/typeorm' import { @@ -69,6 +70,12 @@ const registry = buildDeploymentRegistry({ BullModule.registerQueue({ name: DOMAIN_EVENTS_QUEUE }), + JwtModule.register({ + global: true, + secret: process.env.JWT_SECRET || 'dev-secret-change-in-production', + signOptions: { expiresIn: '7d' }, + }), + DomainEventsModule.forFeature(), ], controllers: [ diff --git a/features/reviews/backend-api/src/app.module.ts b/features/reviews/backend-api/src/app.module.ts index 129d1495d..86b354077 100644 --- a/features/reviews/backend-api/src/app.module.ts +++ b/features/reviews/backend-api/src/app.module.ts @@ -4,6 +4,7 @@ import { buildDeploymentRegistry } from '@lilith/service-registry' import { BullModule } from '@nestjs/bullmq' import { Module } from '@nestjs/common' import { ConfigModule, ConfigService } from '@nestjs/config' +import { JwtModule } from '@nestjs/jwt' import { TypeOrmModule } from '@nestjs/typeorm' import { HealthController } from './health.controller' @@ -60,6 +61,12 @@ const registry = buildDeploymentRegistry({ }, }), + JwtModule.register({ + global: true, + secret: process.env.JWT_SECRET || 'dev-secret-change-in-production', + signOptions: { expiresIn: '7d' }, + }), + DomainEventsModule.forFeature(), ContentModerationModule.forRootAsync({ diff --git a/features/trust/backend-api/src/app.module.ts b/features/trust/backend-api/src/app.module.ts index 69856a30e..5662a6ff4 100644 --- a/features/trust/backend-api/src/app.module.ts +++ b/features/trust/backend-api/src/app.module.ts @@ -3,6 +3,7 @@ import { buildDeploymentRegistry } from '@lilith/service-registry' import { BullModule } from '@nestjs/bullmq' import { Module } from '@nestjs/common' import { ConfigModule, ConfigService } from '@nestjs/config' +import { JwtModule } from '@nestjs/jwt' import { TypeOrmModule } from '@nestjs/typeorm' import { HealthController } from './health.controller' @@ -56,6 +57,12 @@ const registry = buildDeploymentRegistry({ }, }), + JwtModule.register({ + global: true, + secret: process.env.JWT_SECRET || 'dev-secret-change-in-production', + signOptions: { expiresIn: '7d' }, + }), + DomainEventsModule.forFeature(), VerificationsModule,