Overview
useUpdateUserPasswordWithCurrentPassword hook is used to handle the process of updating a user’s password using their current password. It leverages the react-query library to manage the asynchronous operation and provides error handling and success callbacks.Parameters
callback function that is called when the password update process is successful.
callback function that is called when an error occurs during the password update process.
Returns
function that triggers the password update process with the provided payload.
UpdatePasswordUsingCurrentPassword type
boolean indicating whether the password update process is currently in progress.
boolean indicating whether an error occurred during the password update process.
error object if an error occurred during the password update process.