Rank 1: Thread
After logging in successfully I am getting this Error. Before I impleamented this helper function:
export async function updateUserPassword(oldPassword, newPassword) {
try {
const response = await account.updatePassword(newPassword, oldPassword);
return response;
} catch (error) {
console.error("Error updating password:", error);
throw new Error(error.message || "Failed to update password.");
}
}
After testing it the password has changed but I am getting the error in the title after logging in. Can anyone help me out. what may cause this? AI is not helpful