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) {