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

Single page app login/logout #6

Closed
akrikos opened this issue Aug 12, 2015 · 3 comments
Closed

Single page app login/logout #6

akrikos opened this issue Aug 12, 2015 · 3 comments

Comments

@akrikos
Copy link

akrikos commented Aug 12, 2015

I'm using segment with intercom on a single page app that allows the user to login/logout without refreshing the page. It doesn't look like this use case was thought through though (or I'm using things incorrectly).

When I call window.analytics.user().reset() to clear the user data for a logout, the standard intercom shutdown method (window.Intercom('shutdown')) isn't called. I've worked around this by intentionally invoking the shutdown method.

However, that's created a bug with logging back in where calling analytics.identify(...) doesn't invoke window.Intercom('boot', ...). I can't as easily manually call this because I don't know where the intercom key is.

Would y'all take a look at supporting this use case?

@ghost
Copy link

ghost commented Oct 8, 2015

+1 on this, I am encountering the same issues.

@f2prateek
Copy link
Contributor

This is the wrong repo for this issue.

@f2prateek
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants