aboutsummaryrefslogblamecommitdiffstats
path: root/src/services/authService.js
blob: 5c220413c1b22a1ce9da215da32959c9e64b8468 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                                                              
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 });