Send account deletion codes via POST

This commit is contained in:
-LAN-
2025-09-27 03:14:16 +08:00
parent c9eabe1612
commit c14f4495c1
3 changed files with 65 additions and 2 deletions

View File

@ -375,7 +375,7 @@ export const verifyWebAppResetPasswordCode = (body: { email: string; code: strin
post<CommonResponse & { is_valid: boolean; token: string }>('/forgot-password/validity', { body }, { isPublicAPI: true })
export const sendDeleteAccountCode = () =>
get<CommonResponse & { data: string }>('/account/delete/verify')
post<CommonResponse & { data: string }>('/account/delete/verify', { body: {} })
export const verifyDeleteAccountCode = (body: { code: string; token: string }) =>
post<CommonResponse & { is_valid: boolean }>('/account/delete', { body })