diff --git a/src/utils/requests/authenticateUser.ts b/src/utils/requests/authenticateUser.ts new file mode 100644 index 0000000..868c9d0 --- /dev/null +++ b/src/utils/requests/authenticateUser.ts @@ -0,0 +1,16 @@ +import { IauthenticationData } from "@/contexts/Types"; +import axiosRequest from "../axios-request"; + +const authenticateUser = async ({ username, password }: { username: string; password: string }) => { + return await axiosRequest({ + url: "/api/token/", + method: "POST", + data: { + username: username, + password: password, + }, + }); +}; + + +export default authenticateUser; \ No newline at end of file