redux-token-auth
redux-token-auth copied to clipboard
Errors are not accessible in the Redux store
When authentification failed, errors are not accessible (or I didn't figure how) in the Redux Store. The action "redux-token-auth/SIGNIN_REQUEST_FAILED" has no "errors" attribute so I can't inform the user why it fails
I think it could be great to have errors from the server answer accessible in the frontend

@arnaudcosson it's an axios response so you can access the response object on the .response property of the error object:
signInUser({ email, password })
.then(...)
.catch(err => {
console.log(err.response.data);
});
Thanks for your answer. I will try this quickly.
Thanks!