
async authenticateUser(user: LoginUserDto) { const existingUser = await this.usersRepository.findUserByEmail(user.email); if (!existingUser) { throw new UnauthorizedException('Email이 존재하지 않습니다.'); } const isMatch = await bcrypt.compare(user.password, existingUser.password); if (!isMatch) { throw new UnauthorizedException('비밀번호가 일치하지 않습니다.'); } return existingUser; ..