mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-22 22:01:41 +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),
|
|
};
|
|
};
|