Commit 4cd8ec48 authored by tom's avatar tom

disable cookie check

parent a31baf08
...@@ -4,7 +4,7 @@ import type { UserInfo } from 'types/api/account'; ...@@ -4,7 +4,7 @@ import type { UserInfo } from 'types/api/account';
import { QueryKeys } from 'types/client/queries'; import { QueryKeys } from 'types/client/queries';
import appConfig from 'configs/app/config'; import appConfig from 'configs/app/config';
import * as cookies from 'lib/cookies'; // import * as cookies from 'lib/cookies';
import useFetch from 'lib/hooks/useFetch'; import useFetch from 'lib/hooks/useFetch';
interface Error { interface Error {
...@@ -22,6 +22,6 @@ export default function useFetchProfileInfo() { ...@@ -22,6 +22,6 @@ export default function useFetchProfileInfo() {
return fetch(url.toString(), { credentials: 'include' }); return fetch(url.toString(), { credentials: 'include' });
}, { }, {
refetchOnMount: false, refetchOnMount: false,
enabled: Boolean(cookies.get(cookies.NAMES.API_TOKEN)), // enabled: Boolean(cookies.get(cookies.NAMES.API_TOKEN)),
}); });
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment