Method
changePassword
(
currentPassword: string,
newPassword: string
)
Source from the content-addressed store, hash-verified
| 31 | } |
| 32 | |
| 33 | async changePassword( |
| 34 | currentPassword: string, |
| 35 | newPassword: string |
| 36 | ): Promise<{ message: string }> { |
| 37 | return apiClient.post<{ message: string }>('/users/change-password', { |
| 38 | currentPassword, |
| 39 | newPassword, |
| 40 | }); |
| 41 | } |
| 42 | |
| 43 | async deleteAccount(password: string): Promise<{ message: string }> { |
| 44 | return apiClient.delete<{ message: string }>('/users/account', { |
Callers
nothing calls this directly
Tested by
no test coverage detected