diff --git a/src/auth/guards/local.strategy.ts b/src/auth/guards/local.strategy.ts index 2cf561c..9e389d5 100644 --- a/src/auth/guards/local.strategy.ts +++ b/src/auth/guards/local.strategy.ts @@ -1,7 +1,7 @@ /* eslint-disable prettier/prettier */ import { Strategy } from 'passport-local' import { PassportStrategy } from '@nestjs/passport' -import { Injectable, UnauthorizedException } from '@nestjs/common' +import { Injectable } from '@nestjs/common' import { AuthService } from '../auth.service' @Injectable() @@ -14,11 +14,6 @@ export class LocalStrategy extends PassportStrategy(Strategy) { //Login인증용 async validate(email: string, password: string): Promise { - try { - return await this.authService.validateUser(email, password) - } catch (e) { - console.log(e) - throw new UnauthorizedException(e.message) - } + return await this.authService.validateUser(email, password) } }