import { Module } from '@nestjs/common'; import { PassportModule } from '@nestjs/passport'; import path from 'path'; import { fileURLToPath } from 'url'; import { JwtStrategy } from '../jwt.strategy.js'; import { AuthController } from './auth.controller.js'; import { AuthService } from './auth.service.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = path.dirname(__filename); @Module({ imports: [PassportModule], providers: [AuthService, JwtStrategy], controllers: [AuthController], exports: [AuthService], }) export class AuthModule {}