How to detect successful signup?

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
       }
     });
   });

Hi @Ehtved,

I understand that you would like to know how to detect a successful sign-up and perform various operations based on a success or failure.

To assist you further, could you please clarify what types of operations are you intending to perform when it fails? And, when it’s a success?

In the meantime, you may find Auth0’s Post User Registration Action useful.

This will allow you to write code to handle a user’s successful sign-up based on various events.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.