You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, incorrect email or password input to the login mutation both throw a UserNotFoundError, with no distinction made between the two. I would like to be able to tell the user whether their login failed due to an incorrect email or incorrect password.
// line 177if(!user){thrownewUserNotFoundError();}// line 196constvalid=awaitbcrypt.compare(password,user.password);if(!valid){thrownewUserNotFoundError();}
I understand that this may be by design, and if so, feel free to close this. I'll create a fork for my project and open a PR in case this functionality would be useful to others.
The text was updated successfully, but these errors were encountered:
Currently, incorrect email or password input to the
login
mutation both throw aUserNotFoundError
, with no distinction made between the two. I would like to be able to tell the user whether their login failed due to an incorrect email or incorrect password.Relevant Code:
mutations.ts
I understand that this may be by design, and if so, feel free to close this. I'll create a fork for my project and open a PR in case this functionality would be useful to others.
The text was updated successfully, but these errors were encountered: