diff options
author | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-10-16 16:18:13 +0530 |
---|---|---|
committer | Biswakalyan Bhuyan <biswa@surgot.in> | 2024-10-16 16:18:13 +0530 |
commit | b16b8cb5a401b57e9565ca4fcb60f7d8118dbe80 (patch) | |
tree | 5cbdccfce887300de791e2301119f41b766756ba /src | |
parent | 48400b7a4a15b1794f6b473a6a985fe937f23709 (diff) | |
download | mall-app-b16b8cb5a401b57e9565ca4fcb60f7d8118dbe80.tar.gz mall-app-b16b8cb5a401b57e9565ca4fcb60f7d8118dbe80.tar.bz2 mall-app-b16b8cb5a401b57e9565ca4fcb60f7d8118dbe80.zip |
Add authService with custom login and signup functions
Diffstat (limited to 'src')
-rw-r--r-- | src/services/authService.js | 9 |
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 }); |