add: reset password functionality

This commit is contained in:
Mahyar Khanbolooki
2025-07-01 23:50:17 +03:30
parent 48c458f012
commit 5056e2233a
3 changed files with 55 additions and 2 deletions
+12
View File
@@ -0,0 +1,12 @@
import { api } from "../axiosInstance";
export type ResetPasswordRequestModel = {
phone: string,
otp: string,
newPassword: string,
}
export const resetPassword = async (model: ResetPasswordRequestModel) => {
const res = await api.post('/reset-password', model)
return res.data
}