I am trying to implement forgot password in React with the useMoralis
hook like this
const { Moralis } = useMoralis();
await Moralis.User.requestPasswordReset(email, {
success: () => {
/// success callback
},
error: () => {
/// error callback
},
});
but seems like it doesn’t call either the success
or error
callback? also I didn’t get any password reset email, or is there any other API to use? Thanks