versolearning / meteor-intercom

Reactive intercom integration for Meteor
47 stars 15 forks source link

App Id not send after logout #19

Open northern opened 8 years ago

northern commented 8 years ago

We're noticing some issues when users logout (Meteor.logout). On logout, the following Intercom endpoint is called:

POST
https://api-iam.intercom.io/widget_api/conversations

With payload:

page=1&per_page=10&referer=http%3A%2F%2Fexample.com.com%2Flogin&user_data=%7B%7D&Idempotency-Key=4eb0420d

The user_data is empty, which I'm not sure is correct (I believe Intercom has a specific logout endpoint for users), but the app_id clearly isn't set. The response coming back from Intercom is a 404:

{"type":"error.list","request_id":"56d538f2-872a-4521-b31f-ac4ea1f70daf","errors":"code":"not_found","message":"App Not Found "}]}

From this point on no Intercom functionality will work anymore until a hard page reload is performed.

Any ideas/assistance appreciated.