22 lines
719 B
TypeScript
22 lines
719 B
TypeScript
import { Module } from '@nestjs/common';
|
|
import { JwtModule } from '@nestjs/jwt';
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
|
import { AuditModule } from '../audit/audit.module';
|
|
import { AuthController } from './auth.controller';
|
|
import { RefreshTokenEntity } from './refresh-token.entity';
|
|
import { AuthService } from './auth.service';
|
|
import { JwtAuthGuard } from './jwt-auth.guard';
|
|
import { UserEntity } from './user.entity';
|
|
|
|
@Module({
|
|
imports: [
|
|
AuditModule,
|
|
JwtModule.register({}),
|
|
TypeOrmModule.forFeature([UserEntity, RefreshTokenEntity]),
|
|
],
|
|
controllers: [AuthController],
|
|
providers: [AuthService, JwtAuthGuard],
|
|
exports: [AuthService, JwtAuthGuard],
|
|
})
|
|
export class AuthModule {}
|