title: auth0 do something after verification code is correct
body: <p>Hello I am currently following this tutorial online:</p>
  
  <p><a href="https://auth0.com/docs/connections/passwordless/regular-web-app-email-code" rel="nofollow noreferrer">https://auth0.com/docs/connections/passwordless/regular-web-app-email-code</a></p>
  
  <p>and I have ran into a problem. Instead of being rediracted to a url when the code is correct I want to do something after like for example change the popup html file. Here is what I am using to verifiy the code. It works well I just want to be able to make it do stuff after the code is varified corect:</p>
  
  <pre><code>function login(){
    var email = $('#login-email').val();
    var code = $('#login-token').val();
  
    webAuth.passwordlessVerify({
      connection: 'email',
      email: email,
      verificationCode: code
    }, function (err,res) {
      if (err) {
        alert("Token invalid");
      } 
      //do this stuff if token is verified 
      alert("login successful");
      chrome.browserAction.setPopup({popup: "popup.html"});
    });
  };
  </code></pre>
  
  <p>Any help is appreciated. Thank you &lt;3!</p>