Cambios el charly

This commit is contained in:
Drakthor475
2025-10-21 15:29:44 -06:00
parent 91fa9f4ee5
commit d3c179eae4
4 changed files with 10 additions and 30 deletions
-6
View File
@@ -1,6 +0,0 @@
import { Injectable } from '@nestjs/common';
import { AuthGuard } from '@nestjs/passport';
@Injectable()
export class JwtAuthGuard extends AuthGuard('jwt'){}
+3 -4
View File
@@ -3,13 +3,12 @@ import { AuthController } from './auth.controller';
import { AuthService } from './auth.service';
import { UsuariosModule } from 'src/usuarios/usuarios.module';
import { JwtModule } from '@nestjs/jwt';
import { PassportModule } from '@nestjs/passport';
import { JwtStrategy } from './jwt.strategy';
@Module({
imports:[UsuariosModule,
JwtModule,
PassportModule,
JwtModule.register({
global:true,
secret: process.env.JWT,
@@ -18,6 +17,6 @@ import { JwtStrategy } from './jwt.strategy';
}),
],
controllers: [AuthController],
providers: [AuthService,JwtStrategy]
providers: [AuthService]
})
export class AuthModule {}