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
The login API I try to use returns a 400 response when there's an error, with the error message in the body of the response:
{error: {email: "Need Email or Username"}}
If I use Fetch API, I can do a check for a response.ok, and display the error message to the user. However, if I use this.auth.login, the 400 response is returned to the catch block, without a way for me to get that body.
Is it a bug or an intended behaviour? If it's intended, is there a workaround for it?
The text was updated successfully, but these errors were encountered:
The login API I try to use returns a 400 response when there's an error, with the error message in the body of the response:
If I use Fetch API, I can do a check for a response.ok, and display the error message to the user. However, if I use
this.auth.login
, the 400 response is returned to the catch block, without a way for me to get that body.Is it a bug or an intended behaviour? If it's intended, is there a workaround for it?
The text was updated successfully, but these errors were encountered: