I am trying to render my errors to the client for logging in.
Whenever I try logging in with the correct a user that does not exist, I get the following error:
"The instance was not found or provided password was incorrect"
This is annoying because I should be able to tell my users definitively whether they have entered an incorrect password OR if they definitively do not have an account registered in the database. Instead, because I get this error back regardless of whether the account is nonexistent or the password is incorrect, it becomes a confusing error to render to the on the client. Users that previously signed up may think their account was deleted when in reality, their password is incorrect. They’d have to go through the extra process of signing up again and getting an error that their account already exists just to confirm that their password is incorrect and their account was not deleted. Conversely, users could have the right password and have misspelled their username.
Splitting this error message into two separate errors would solve this problem and I would be able to tell users explicitly what the issue is when they are trying to Login.