first commit

This commit is contained in:
2026-10-03 13:40:26 +02:00
parent 732a5b5a16
commit 566f415fa7
555 changed files with 62704 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
import { DynamicModule, Module, Type } from '@nestjs/common';
import { APP_GUARD } from '@nestjs/core';
import { AuthGuard } from './auth/auth.guard';
import { WsAuthenticator } from './auth/ws-authenticator';
import { UserResolver } from './graphql/user.resolver';
import { AuthController } from './http/auth.controller';
import { PireonWebhookController } from './http/pireon-webhook.controller';
/** Driving adapters of the identity context: global auth guard, webhook, GraphQL. */
@Module({
controllers: [AuthController, PireonWebhookController],
providers: [
{ provide: APP_GUARD, useClass: AuthGuard },
WsAuthenticator,
UserResolver,
],
exports: [WsAuthenticator],
})
export class IdentityPresentersModule {
static withApplication(
applicationModule: Type | DynamicModule,
): DynamicModule {
return {
module: IdentityPresentersModule,
imports: [applicationModule],
exports: [WsAuthenticator],
};
}
}