import { AuthorizationModule, IdentityProviderRegistry, TokenModule, UserModule, } from "@cv/core"; import { Global, Module } from "@nestjs/common"; import { DiscoveryModule } from "@nestjs/core"; import { JwtAuthGuard } from "./guards/jwt-auth.guard"; import { VerifiedScopeGuard } from "./guards/verified-scope.guard"; @Global() @Module({ imports: [DiscoveryModule, UserModule, TokenModule, AuthorizationModule], providers: [IdentityProviderRegistry, JwtAuthGuard, VerifiedScopeGuard], exports: [ IdentityProviderRegistry, UserModule, TokenModule, AuthorizationModule, JwtAuthGuard, VerifiedScopeGuard, ], }) export class AuthModule {}