quivr/frontend/lib/api/auth/useAuthApi.ts

13 lines
312 B
TypeScript
Raw Normal View History

import { useAxios } from "@/lib/hooks";
import { createApiKey } from "./auth";
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export const useAuthApi = () => {
const { axiosInstance } = useAxios();
return {
createApiKey: async () => createApiKey(axiosInstance),
};
};