Hi,
I’m using vue.js for auth0, for the signup process I want to perform different operations based on its success or failure. I can handle the failure but am not able to handle the success of API. Can anyone please advise?
CODE:
return new Promise((resolve, reject) => {
this.webAuth.redirect.signupAndLogin(options, function (err) {
alert(err);
if (err) {
reject(new ApiErrorResult(err)); // this is called if api call fails
} else {
resolve(DefaultApiErrorResult); // this is never called
}
});
});