I can’t send a password reset email. I need to have an endpoint on my api that calls auth0 to send the email and I’ve copied the code directly from the docs while logged in. The request just hangs - nothing happens?
I see some docs refer to “Email templates”, which don’t seem to be available for us on our dashboard?
Any idea what is going on?
Here is the request:
var options = {
method: "POST",
url: "https://ammonitewealth.eu.auth0.com/dbconnections/change_password",
headers: { "content-type": "application/json" },
data: {
client_id: "my_client_id",
email: userEmail,
connection: "Username-Password-Authentication",
},
};
axios
.request(options)
.then(function (response) {
console.log(response.data);
})
.catch(function (error) {
console.error(error);
});