📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
import { forwardRef, Module } from '@nestjs/common'
import { JwtModule } from '@nestjs/jwt'
import { PassportModule } from '@nestjs/passport'
import { TypeOrmModule } from '@nestjs/typeorm'
import { ActionTokensModule } from '../action-tokens/action-tokens.module'
import { MailerModule } from '../mailer/mailer.module'
import { UserModule } from '../user/user.module'
import { ProjectModule } from '../project/project.module'
import { TelegramService } from '../integrations/telegram/telegram.service'
import { TwoFactorAuthModule } from '../twoFactorAuth/twoFactorAuth.module'
import { AuthController } from './auth.controller'
import { AuthService } from './auth.service'
import {
ApiKeyStrategy,
JwtAccessTokenStrategy,
JwtRefreshTokenStrategy,
} from './strategies'
import { Message } from '../integrations/telegram/entities/message.entity'
import { PendingInvitationModule } from '../pending-invitation/pending-invitation.module'
import { OrganisationModule } from '../organisation/organisation.module'
@Module({
imports: [
JwtModule.register({}),
PassportModule,
forwardRef(() => UserModule),
ActionTokensModule,
MailerModule,
ActionTokensModule,
ProjectModule,
forwardRef(() => TwoFactorAuthModule),
TypeOrmModule.forFeature([Message]),
PendingInvitationModule,
forwardRef(() => OrganisationModule),
],
controllers: [AuthController],
providers: [
AuthService,
JwtAccessTokenStrategy,
JwtRefreshTokenStrategy,
ApiKeyStrategy,
TelegramService,
],
exports: [AuthService],
})
export class AuthModule {}