nice fixing auth problems

This commit is contained in:
talksik
2022-05-05 05:34:08 -05:00
parent 601a50827c
commit 52e0ae0d9e
3 changed files with 19 additions and 13 deletions
@@ -14,8 +14,7 @@ export default function ProtectedRoute({
}) {
const [jwtToken, setJwtToken] = useRecoilState($jwtToken);
const { isLoading, isError, isFetching, isSuccess, refetch } =
useAuthCheck(jwtToken);
const { isLoading, isError, isFetching, isSuccess, refetch } = useAuthCheck();
useEffect(() => {
// on load of this, if we already have jwt tokens in store,