react
react copied to clipboard
[BUG] init auth access token behavior
Bug description
When the access token is invalid, the request fails but the auth.user remains in redux store. As a result, the failUser() was not dispatch and the user was not reset.
Result
path: src\modules\auth\actions.js function: initAuth
Deleting internal catches (.catch(() => {}))

Expected behavior
When the access token is invalid, the request will fail and catch the error in the external catch (of Promise.all).