import ApiConnect2 from "./ApiConfig2"; export const user_login = async (data) => { // console.log(data) try { const result = await ApiConnect2("auth/login", { method: "POST", data: data, // withCredentials: true, }); return result; } catch (error) { console.log(error); console.log(error + "failed login api"); return error; } }; export const send_email_api = async (data) => { try { const result = await ApiConnect2("/send-email/", { method: "POST", data: data, // withCredentials: true, }); return result; } catch (error) { console.log(error); console.log(error + "failed send email api"); return error; } };