I wish to return a custom error when user tries to log in with incorrect username and/or password.
How do I access my unauthorized response custom message in the login function catch error?
It seems like the aurelia-auth login function must receive a httpStatusCode.Unauthorized in order for it to understand that the password/username was incorrect, but that generates a 401 (Unauthorized) console error. Can I suppress this console error or perhaps return a json result which aurelia-auth understands?
I wish to return a custom error when user tries to log in with incorrect username and/or password.
How do I access my unauthorized response custom message in the login function catch error?
It seems like the aurelia-auth login function must receive a httpStatusCode.Unauthorized in order for it to understand that the password/username was incorrect, but that generates a 401 (Unauthorized) console error. Can I suppress this console error or perhaps return a json result which aurelia-auth understands?
http://stackoverflow.com/questions/42532109/aurelia-auth-custom-response-message-console-error