feat: added some new functions to the auth service

This commit is contained in:
2026-07-23 20:48:49 +03:30
parent f380b1267d
commit 71529f7d24
12 changed files with 343 additions and 17 deletions
+9 -1
View File
@@ -1,4 +1,5 @@
import { Module } from '@nestjs/common';
import { JwtModule } from '@nestjs/jwt';
import { AuthController } from './auth.controller';
import { AuthService } from './auth.service';
import { UtilsModule } from 'src/utils/utils.module';
@@ -6,9 +7,16 @@ import { TypeOrmModule } from '@nestjs/typeorm';
import { User } from 'src/users/entities/user.entity';
import { OTP } from './entities/otp.entity';
import { OtpRepository } from './repositories/otp.repository';
import { UsersModule } from 'src/users/users.module';
import { ConfigService } from '@nestjs/config';
@Module({
imports: [TypeOrmModule.forFeature([User, OTP]), UtilsModule],
imports: [
TypeOrmModule.forFeature([User, OTP]),
JwtModule.register({}),
UtilsModule,
UsersModule,
],
controllers: [AuthController],
providers: [AuthService, OtpRepository],
})