import { Module } from '@nestjs/common'; import { AuthService } from './auth.service'; import { AuthController } from './auth.controller'; import { UsersModule } from '../users/users.module'; import { LocalStrategy } from './local.strategy'; import { JwtStrategy } from './jwt.strategy'; import { JwtModule } from '@nestjs/jwt'; import config from 'config.json'; @Module({ imports: [ UsersModule, JwtModule.register({ secret: config.jwt, signOptions: { expiresIn: '7d' }, }), ], controllers: [AuthController], providers: [AuthService, LocalStrategy, JwtStrategy], }) export class AuthModule {}