We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb9e45c commit 3a88e47Copy full SHA for 3a88e47
packages/dashboard/src/lib/api.ts
@@ -31,7 +31,7 @@ export const authenticatedFetch = async (
31
32
if (res.status === 401) {
33
localStorage.removeItem("token");
34
- throw new Error("Unauthorized");
+ location.reload();
35
}
36
37
if (res.status === 400 || res.status === 500 || res.status === 404) {
0 commit comments