Hybridauth Bug

Hello,

I’m trying to implement the ability to login using a Facebook / Twitter account using the HybridAuth library.

As far as I understood when you call the “authenticate” method on it’s supposed to redirect you say on the Facebook page, where you enter your FB credentials, and then come back to the page it was called from.

In my case I’ve given the ability to authenticate from 2 different pages (login / signup), and everything works fine in the “normal” situation.

However there’s a weird issue when the following steps are executed

  1. Go to sign up page

  2. Hit Sign Up with Facebook => you’re redirected to the FB authentication page

  3. DO NOT authenticate, but close the window instead

  4. Go to the login page

  5. Hit Log In with Facebook => you’re redirected to the FB authentication page

  6. Authenticate with your FB account

At this moment you are redirected to the SignUp page and NOT the LogIn page, as if the previous failed sign up attempt had made the callback put in the cache.

Has anybody else ever experienced this, or any idea of what is going on ?

Thanks.