good morning my problem is the following this is my code
const changePassword = () => {
const url =
"https://dev-elbuensabor.us.auth0.com/dbconnections/change_password";
const clientId = "";
const data = {
client_id: clientId,
email: "",
connection: "Username-Password-Authentication",
};
fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
})
.then((response) => response.json())
.then((data) => {
console.log(data);
})
.catch((error) => {
console.error(error);
});
};
When I go I want to give my password change button. It gives me a 404 error.
or
act_devtools_backend_compact.js:2367 SyntaxError: Unexpected token ‘W’, “We’ve just”… is not valid JSON