diff --git a/src/auth/auth.controller.ts b/src/auth/auth.controller.ts index 82967d9..aa1fa2d 100644 --- a/src/auth/auth.controller.ts +++ b/src/auth/auth.controller.ts @@ -20,9 +20,7 @@ export class AuthController { @ApiOperation({ description: 'Login del admin.' }) @ApiBody({ description: 'Variables que necesita el endpoint.', - examples: { - ejemplo: { value: { operador: '', password: '' } }, - }, + examples: { ejemplo: { value: { operador: '', password: '' } } }, }) loginAdmin(@Body() body: LoginAdminDto) { return this.authService.loginAdmin(body.operador, body.password); diff --git a/src/auth/auth.module.ts b/src/auth/auth.module.ts index 853f84a..66246f9 100644 --- a/src/auth/auth.module.ts +++ b/src/auth/auth.module.ts @@ -1,7 +1,6 @@ import { Module } from '@nestjs/common'; import { ConfigService } from '@nestjs/config'; import { JwtModule } from '@nestjs/jwt'; -import { PassportModule } from '@nestjs/passport'; import { AuthController } from './auth.controller'; import { AuthService } from './auth.service'; import { JwtStrategyService } from './strategy/jwt-strategy.service'; @@ -22,7 +21,6 @@ import { UsuarioModule } from '../usuario/usuario.module'; }), ModuloModule, OperadorModule, - PassportModule.register({ defaultStrategy: 'jwt' }), UsuarioModule, ], controllers: [AuthController],