dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_AuthModule cluster_AuthModule_exports cluster_AuthModule_providers AuthService AuthService AuthModule AuthModule AuthModule->AuthService AuthService AuthService AuthService->AuthModule JwtStrategy JwtStrategy JwtStrategy->AuthModule

File

src/modules/auth/auth.module.ts

Controllers

Exports

import { forwardRef, Module } from '@nestjs/common';
import { PassportModule } from '@nestjs/passport';
import { AuthController } from 'modules/auth/controllers';
import { AuthService } from 'modules/auth/services';
import { JwtStrategy } from 'modules/auth/strategies';
import { UserModule } from 'modules/user/user.module';
import { PartnerModule } from 'modules/partner/partner.module';
@Module({
  imports: [
    forwardRef(() => UserModule),
    forwardRef(() => PartnerModule),
    PassportModule.register({ defaultStrategy: 'jwt' }),
  ],
  controllers: [AuthController],
  providers: [AuthService, JwtStrategy],
  exports: [PassportModule.register({ defaultStrategy: 'jwt' }), AuthService],
})
export class AuthModule {}

result-matching ""

    No results matching ""