Skip to content

Commit 3a88e47

Browse files
committed
fix: 401 handling
1 parent fb9e45c commit 3a88e47

File tree

1 file changed

+1
-1
lines changed
  • packages/dashboard/src/lib

1 file changed

+1
-1
lines changed

packages/dashboard/src/lib/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const authenticatedFetch = async (
3131

3232
if (res.status === 401) {
3333
localStorage.removeItem("token");
34-
throw new Error("Unauthorized");
34+
location.reload();
3535
}
3636

3737
if (res.status === 400 || res.status === 500 || res.status === 404) {

0 commit comments

Comments
 (0)