Geeting User not found all the time on login /v1/auth/login.
Closed this issue · 2 comments
goors commented
I am getting all the time user not found:
{
"message": "User not found.",
"code": 2001,
"status": 404
}
When sending JSON with:
{
"email":"me@gmail.com",
"password":"password"
}
In local strategy:
const user = await this.userRepository.findOne({ email }, this.USER_TOKEN_FIELDS + ' password');
if (!user) throw new ApiError(API_ERRORS.USER_NOT_FOUND);
Of course this is not correct since that user exists in database.
ShareinSK commented
Have you created any new controllers other than the given auth and user controller?
goors commented
I gave up on this since i spent to much time getting same errro all the time. Closing