react icon indicating copy to clipboard operation
react copied to clipboard

[BUG] init auth access token behavior

Open Tzach123 opened this issue 3 years ago • 0 comments

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(() => {}))

result

Expected behavior

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

Tzach123 avatar Jun 09 '22 12:06 Tzach123