import api from "./api";

export const forgotPassword = async (email: string) => {
  const response = await api.post("/auth/forgot-password", { email });
  return response.data;
};

export const verifyResetOtp = async (email: string, otp: string) => {
  const response = await api.post("/auth/verify-reset-otp", { email, otp });
  return response.data;
};

export const resetPassword = async (
  email: string,
  newPassword: string,
  confirmPassword: string
) => {
  const response = await api.post("/auth/reset-password", {
    email,
    newPassword,
    confirmPassword,
  });
  return response.data;
};
