removed auth header

This commit is contained in:
ACoolName 2024-05-25 01:40:00 +03:00
parent e7e23549f7
commit 3b6e8e1aac

View File

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