mirror of
https://github.com/StanGirard/quivr.git
synced 2024-12-15 05:31:33 +03:00
0ce9c8ffcd
* test(useApiKeyConfig): add unit tests * test(BackendConfig): add unit tests
13 lines
312 B
TypeScript
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),
|
|
};
|
|
};
|