make auth module global

This commit is contained in:
2026-05-11 13:42:13 +03:30
parent 2b84819c59
commit ef23eff6b4
+2 -1
View File
@@ -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]),