Feat add iam auth

This commit is contained in:
mahmood
2026-09-25 19:04:48 +03:30
parent 2de90c6b35
commit 36f239e02c
28 changed files with 2738 additions and 19 deletions
@@ -0,0 +1,19 @@
import { Global, Module } from '@nestjs/common';
import { PrismaModule } from '../../prisma/prisma.module';
import { AdminSessionService } from './admin-session.service';
import { AppSessionService } from './app-session.service';
/**
* Revocable admin sessions.
*
* Global so every login path (admin panel and app) and the IAM
* back-channel-logout endpoint can use these without wiring imports. Both
* services are inert while tracking is off (see AdminSessionService).
*/
@Global()
@Module({
imports: [PrismaModule],
providers: [AdminSessionService, AppSessionService],
exports: [AdminSessionService, AppSessionService],
})
export class AdminSessionModule {}