mirror of
https://github.com/QuivrHQ/quivr.git
synced 2024-12-16 18:52:12 +03:00
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),
|
||
|
};
|
||
|
};
|