Moralis.User.requestPasswordReset("email@example.com") .then(() => { // Password reset request was sent successfully }).catch((error) => { // Show the error message somewhere alert("Error: " + error.code + " " + error.message); });