Feat/reset password (#1566)

* feat: reset password with recovery key

* perf: formatting and multi language
This commit is contained in:
Junyan Qin (Chin)
2025-07-05 17:36:35 +08:00
committed by GitHub
parent a8d03c98dc
commit a01706d163
13 changed files with 423 additions and 1 deletions

View File

@@ -492,6 +492,18 @@ class HttpClient {
public checkUserToken(): Promise<ApiRespUserToken> {
return this.get('/api/v1/user/check-token');
}
public resetPassword(
user: string,
recoveryKey: string,
newPassword: string,
): Promise<{ user: string }> {
return this.post('/api/v1/user/reset-password', {
user,
recovery_key: recoveryKey,
new_password: newPassword,
});
}
}
const getBaseURL = (): string => {