From 3b6e8e1aacce6f9fb4a7047c431362897a24d581 Mon Sep 17 00:00:00 2001 From: ACoolName Date: Sat, 25 May 2024 01:40:00 +0300 Subject: [PATCH] removed auth header --- src/common.tsx | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/common.tsx b/src/common.tsx index e09b14d..e3f2c54 100644 --- a/src/common.tsx +++ b/src/common.tsx @@ -84,9 +84,6 @@ export const api: AxiosInstance = axios.create({ export function ApiWrapper(p: { children: ReactNode}) { const {children} = p const token = Cookies.get('auth') - if (token) { - api.defaults.headers.common.Authorization = `Bearer ${token}`; - } const [apiAuthenticated, setApiAuthenticated] = useState(Boolean(token)) if (!apiAuthenticated) {