Hi ,
I have implemented auth0 sent email functionality for forgot password. Its working fine in which I have customise email template with our application link. please find below code snippet for that
var webAuth0 = new auth0.WebAuth({
domain: '[tenant].auth0.com',
clientID: '0EvIxFA6k***********qlaZGxO72K'
});
webAuth0.changePassword({
connection: 'Username-Password-Authentication',
email: this.loginUser.email
}, function (err, resp) {
if(err){
console.log(err.message);
}else{
console.log(resp);
that.emailSent = true;
}
});
But I am unable to find any api/sdk in auth0 so that I can reset password without authToken. I have tried with “/dbconnections/change_password” with passing password in request but its not working.
Please help me on how to reset password for a user who forgot his password, for that access token is not available.