https://supertokens.com/ logo
#support-questions
Title
# support-questions
b

bill92

01/29/2022, 8:00 AM
Here is my hook
Copy code
ts
import { useQuery } from "react-query";
import { useAxios } from "./useAxios";

export const useGetPatients = () => {
  const { axios } = useAxios();
  return useQuery(["patients"], () =>
    axios.get("/patient", { withCredentials: true })
  );
};