import { Global, Module } from '@nestjs/common'; import { IamController } from './iam.controller'; import { IamLogoutService } from './iam-logout.service'; import { IamService } from './iam.service'; /** * Central IAM integration. * * Global so any module can delegate credential checks without wiring imports; * the service itself is inert until `IAM_ENABLED=true`, so importing it costs * nothing in a deployment that does not use the identity service. */ @Global() @Module({ controllers: [IamController], providers: [IamService, IamLogoutService], exports: [IamService, IamLogoutService], }) export class IamModule {}