blob: 5c220413c1b22a1ce9da215da32959c9e64b8468 (
plain) (
tree)
|
|
import axios from 'axios';
const API_URL = 'https://yourapi.com/api/auth';
export const login = (email, password) => axios.post(`${API_URL}/login`, { email, password });
export const verifyOtp = (email, otp) => axios.post(`${API_URL}/verify-otp`, { email, otp });
export const resetPassword = (email) => axios.post(`${API_URL}/reset-password`, { email });
|