quivr/frontend/lib/api/auth/useAuthApi.ts
Mamadou DICKO 0ce9c8ffcd
Frontend/test/config/2 (#542)
* test(useApiKeyConfig): add unit tests

* test(BackendConfig): add unit tests
2023-07-06 19:01:12 +02:00

13 lines
312 B
TypeScript

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),
};
};