fix: update reset password token when email code verify success (#18364)
This commit is contained in:
parent
4247a6b807
commit
7ba3e599d2
2 changed files with 6 additions and 2 deletions
|
|
@ -338,7 +338,7 @@ export const sendResetPasswordCode = (email: string, language = 'en-US') =>
|
|||
post<CommonResponse & { data: string; message?: string; code?: string }>('/forgot-password', { body: { email, language } })
|
||||
|
||||
export const verifyResetPasswordCode = (body: { email: string; code: string; token: string }) =>
|
||||
post<CommonResponse & { is_valid: boolean }>('/forgot-password/validity', { body })
|
||||
post<CommonResponse & { is_valid: boolean; token: string }>('/forgot-password/validity', { body })
|
||||
|
||||
export const sendDeleteAccountCode = () =>
|
||||
get<CommonResponse & { data: string }>('/account/delete/verify')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue