-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
26053: ui: redirect to login page when api call is unauthorized r=couchand a=couchand #### ui: pass both api handlers in a single then call Previously the API handlers in CachedDataReducer were attached with a then followed by a catch, which meant errors in the dispatch of success would show up as API errors erroneously. This change moves both handlers into a single invocation of then to fix the issue. Release note: None #### ui: redirect to login page when api call is unauthorized When we get a 401 HTTP status code, redirect to the login page. Once logout is implemented, this should do that instead, to make sure client-side state is clean. Fixes: #25785 Release note: None Co-authored-by: Andrew Couch <[email protected]>
- Loading branch information
Showing
4 changed files
with
46 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters