26 lines
814 B
TypeScript
26 lines
814 B
TypeScript
import { forwardRef, Module } from "@nestjs/common";
|
|
import { JwtModule } from "@nestjs/jwt";
|
|
import { EmailModule } from "src/email/email.module";
|
|
import { AuthController } from "./auth.controller";
|
|
import { AuthService } from "./auth.service";
|
|
import { AuthTotpService } from "./authTotp.service";
|
|
import { JwtStrategy } from "./strategy/jwt.strategy";
|
|
import { LdapService } from "./ldap.service";
|
|
import { UserModule } from "../user/user.module";
|
|
import { OAuthModule } from "../oauth/oauth.module";
|
|
|
|
@Module({
|
|
imports: [
|
|
JwtModule.register({
|
|
global: true,
|
|
}),
|
|
EmailModule,
|
|
forwardRef(() => OAuthModule),
|
|
UserModule,
|
|
],
|
|
controllers: [AuthController],
|
|
providers: [AuthService, AuthTotpService, JwtStrategy, LdapService],
|
|
exports: [AuthService],
|
|
})
|
|
export class AuthModule {}
|