Skip to content

Commit

Permalink
Shutdown intercom on sign out (#677)
Browse files Browse the repository at this point in the history
  • Loading branch information
macjuul authored Feb 6, 2025
1 parent 0166637 commit 17b0905
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/screens/surrealist/cloud-panel/api/auth.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { shutdown } from "@intercom/messenger-js-sdk";
import { sleep } from "radash";
import { adapter } from "~/adapter";
import { useCloudStore } from "~/stores/cloud";
Expand Down Expand Up @@ -276,6 +277,8 @@ export function destroySession() {
returnTo: `${CALLBACK_ENDPOINT}?action=logout&target=${adapter.id}`,
});

shutdown();

adapter.openUrl(`${authBase}/v2/logout?${params.toString()}`, "internal");
}

Expand Down

0 comments on commit 17b0905

Please sign in to comment.