Skip to content

Commit

Permalink
Merge pull request #984 from replicatedhq/logout-on-401
Browse files Browse the repository at this point in the history
Logout on unauthorized error
  • Loading branch information
marccampbell committed Aug 21, 2020
2 parents 6b14857 + 421fea2 commit 5a6baa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kotsadm/web/src/Root.jsx
Expand Up @@ -148,6 +148,10 @@ class Root extends Component {
method: "GET",
});
if (!res.ok) {
if (res.status === 401) {
Utilities.logoutUser();
return;
}
console.log("failed to list apps, unexpected status code", res.status);
return;
}
Expand Down

0 comments on commit 5a6baa2

Please sign in to comment.