Detect a change to the session and update accordingly?

I'm trying to integrate Intercom with my create-t3-app and having some difficulty with users logged in vs visitors. I can get Intercom to update when a user logs in or out, but I'm trying to figure out how to connect it to the actual session - if a logged in user returns to my application for example. I also have an issue where Intercom clears the users data when they navigate to a different page when they're not logged in. Wondering if there's a way to call a function only if the session has changed or it's on the first call. Mostly, I'm just a Noob and am having a really hard time integrating Intercom for visitors and logged in users.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server