title: Auth0 error after failed login attempt
body: <p>I am using Auth0 to authenticate users by redirecting them to facebook.
  But the problem I am facing is that if a user types in incorrect account credentials the first time and succeeds on the second attempt the redirect does not happen, instead it takes me to "Oops!, something went wrong" page with the following message:
  "invalid_request: You probably pressed the back button or there is some issue with cookies, since we couldn't find your session. Try logging in again from the application and if the problem persist contact the administrator."</p>
  
  <p>EDIT: I am using the below Auth0Lock code on the client side.</p>
  
  <pre><code> var lock = new Auth0Lock('&lt;%= auth0.clientId %&gt;', '&lt;%= auth0.domain %&gt;', {
   //redirect mode
       auth: {
         redirectUrl: '&lt;%= auth0.callback %&gt;',
         responseType: 'code',
         params: {
           scope: 'openid' // Learn about scopes: https://auth0.com/docs/scopes
         }
       },
       autoclose: true,
       theme: {
         logo: 'https://xxxxxx/logo_orange.jpg'
       },
       languageDictionary: {
         title: "test"
       }
   });
   lock.on("unrecoverable_error",function(err) {
         console.log(err);
   });
   lock.on("authorization_error",function(err) {
         console.log(err);
   });
  </code></pre>
  
  <p>Once I select Login with facebook I am redirected to facebook url that looks something like <a href="https://www.facebook.com/login.php?skip_api_login=1&amp;api_key=xxxxxxxxxxxxxxx&amp;signed_next=1&amp;next=https%3A%2F%2Fwww.facebook.com%2Fv2.8%2Fdialog%2Foauth%3Fredirect_uri%3Dhttps%253A%252F%252Ftest.auth0.com%252Flogin%252Fcallback%26state%xxxxxxxxxxxxxxxx%26scope%3Demail%252Cpublish_actions%26response_type%3Dcode%26client_id%xxxxxxxxxxxxxxxxx%26ret%3Dlogin%26logger_id%xxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&amp;cancel_url=https%3A%2F%2Ftest.auth0.com%2Flogin%2Fcallback%3Ferror%3Daccess_denied%26error_code%3D200%26error_description%3DPermissions%2Berror%26error_reason%3Duser_denied%26state%xxxxxxxxxxxxxxxx%23_%3D_&amp;display=page&amp;locale=en_GB&amp;logger_id=xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" rel="nofollow">link</a></p>
  
  <p>There if I enter the email/password incorrectly the first time the page refreshes and on the second try if I succeed,instead of taking me back to my app the auth0 generic error page => <a href="https://auth0.com/docs/error-pages/generic" rel="nofollow">doc</a> shows up with the error I mentioned at the top.On the server side passport seems to correctly authenticate the user.</p>
  
  <p>PS: Chrome is taking me to a login page which has a login form on top and center but firefox just has login at the center of the page.For chrome if I use the top login form and has a failed login attempt on second successful attempt I am taken to my facebook page i.e no redirect happens.</p>