Skip to content

Commit 25d541f

Browse files
committed
chore(logout): reset the Authorization
1 parent 8847cfd commit 25d541f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

packages/hedgehog-lab/src/hooks/useAuth.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const useAuth = () => {
6565

6666
const logout = useCallback(() => {
6767
restAuth();
68+
http.defaults.headers.common["Authorization"] = "";
6869

6970
if (!!mathAccountPage) {
7071
navigate("/");

packages/hedgehog-lab/src/network/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ switch (hostname) {
1111
url = "https://api.hlab.app";
1212
break;
1313
default:
14-
url = "http://localhost:9000";
14+
url = "https://api.hlab.app";
1515
}
1616

1717
axios.defaults.timeout = 100000;

0 commit comments

Comments
 (0)