summaryrefslogtreecommitdiffstats
path: root/src/services
diff options
context:
space:
mode:
Diffstat (limited to 'src/services')
-rw-r--r--src/services/authService.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/services/authService.js b/src/services/authService.js
new file mode 100644
index 0000000..5c22041
--- /dev/null
+++ b/src/services/authService.js
@@ -0,0 +1,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 });