diff --git a/src/hooks/useAuth.ts b/src/hooks/useAuth.ts index a58f0c5..7756f4c 100644 --- a/src/hooks/useAuth.ts +++ b/src/hooks/useAuth.ts @@ -30,7 +30,7 @@ export default function useAuth() { return response; }; - useQuery([QueryKeys.REFRESH], silentRefresh, { + useQuery([QueryKeys.REFRESH], () => silentRefresh(), { enabled: !!session, refetchInterval: REFRESH_PERIOD, refetchIntervalInBackground: true,