This commit is contained in:
TuNombreDeUsuario
2024-06-05 14:35:05 -06:00
parent 0af1c11144
commit 6d47dd3fee
12 changed files with 673 additions and 25 deletions
+22
View File
@@ -0,0 +1,22 @@
import { Module } from '@nestjs/common';
import { AuthService } from './auth.service';
import { UsersModule } from '../users/users.module';
import { JwtModule } from '@nestjs/jwt';
import { AuthController } from './auth.controller';
import { jwtConstants } from './constants';
@Module({
imports: [
UsersModule,
JwtModule.register({
global: true,
secret: jwtConstants.secret,
signOptions: { expiresIn: '60s' },
}),
],
providers: [AuthService],
controllers: [AuthController],
exports: [AuthService],
})
export class AuthModule {}