From b16b8cb5a401b57e9565ca4fcb60f7d8118dbe80 Mon Sep 17 00:00:00 2001 From: Biswakalyan Bhuyan Date: Wed, 16 Oct 2024 16:18:13 +0530 Subject: Add authService with custom login and signup functions --- src/services/authService.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/services/authService.js (limited to 'src/services') 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 }); -- cgit v1.2.3-59-g8ed1b