From ef23eff6b4649e23b5440cd8539156d62350d520 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Mon, 11 May 2026 13:42:13 +0330 Subject: [PATCH] make auth module global --- src/modules/auth/auth.module.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/auth/auth.module.ts b/src/modules/auth/auth.module.ts index 80db99e..2c6235c 100644 --- a/src/modules/auth/auth.module.ts +++ b/src/modules/auth/auth.module.ts @@ -1,4 +1,4 @@ -import { Module } from '@nestjs/common'; +import { Global, Module } from '@nestjs/common'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { JwtModule } from '@nestjs/jwt'; import { TypeOrmModule } from '@nestjs/typeorm'; @@ -9,6 +9,7 @@ import { AuthService } from './auth.service'; import { JwtAuthGuard } from './guards/jwt-auth.guard'; import { RolesGuard } from './guards/roles.guard'; +@Global() @Module({ imports: [ TypeOrmModule.forFeature([AuthOtpEntity, UserEntity]),