Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

External site redirecting back to app creates new browser instance #72

wants to merge 2 commits into


None yet
1 participant

Example use case:

Testing facebook authentication for web sites:

  • browser requests '/auth/facebook' which redirects to app authentication flow
  • browser logs into facebook and is redirected back to application

Current behaviour:

  • Because the host name doesn't match 'undefined' a new browser is created; the cookies are not transferred, session information is lost.

Expected behaviour:

  • Reuse the same browser object used for the initial request to the app. I.e., 'undefined'


  • If you are passing an app to Browser, then the host argument is ignored. Attempted to set self.host for this purpose but it caused all sorts of woes.
  • Added new option externalHost for the hostname of the 'undefined' browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment