2022-10-09 22:30:32 +02:00
|
|
|
import { Module } from "@nestjs/common";
|
|
|
|
import { JwtModule } from "@nestjs/jwt";
|
|
|
|
import { AuthController } from "./auth.controller";
|
|
|
|
import { AuthService } from "./auth.service";
|
2022-12-26 12:43:36 +01:00
|
|
|
import { AuthTotpService } from "./authTotp.service";
|
2022-10-09 22:30:32 +02:00
|
|
|
import { JwtStrategy } from "./strategy/jwt.strategy";
|
|
|
|
|
|
|
|
@Module({
|
|
|
|
imports: [JwtModule.register({})],
|
|
|
|
controllers: [AuthController],
|
2022-12-26 12:43:36 +01:00
|
|
|
providers: [AuthService, AuthTotpService, JwtStrategy],
|
2022-10-09 22:30:32 +02:00
|
|
|
exports: [AuthService],
|
|
|
|
})
|
|
|
|
export class AuthModule {}
|