Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make sure listeners can be cleaned up #190

Conversation

nbrustein
Copy link
Contributor

@booleanbetrayal you were needing to call handleValidAuth again because the window close listener was not getting cleaned up, so when the window closed, it was canceling the auth it still thought was ongoing, and that was deleting auth headers.

The fix is the make sure cancelOmniauthInAppBrowserListeners is saved in this. I think this bug was introduced in translating from js back to coffeescript. That's why we saw it work before.

@booleanbetrayal
Copy link
Collaborator

sweet ... nice catch!

booleanbetrayal added a commit that referenced this pull request Aug 5, 2015
make sure listeners can be cleaned up
@booleanbetrayal booleanbetrayal merged commit 17af3be into lynndylanhurley:improved_omniauth_flow Aug 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants