import { axiosInstance } from "@/axios"; import type { LoginPayload, Token } from "./types"; export const login = (data: LoginPayload) => { return axiosInstance.post("/login/token/", data); }; // On this one you just provide the bear token and its should return the userData. export const getUserData = () => { return axiosInstance.get("/login/token/"); };