On deinit callback

Closer sdk provides callback on widget deinitialization. Deinitialization might happen when user fails to authorize or when closer.deinit was used.

closer.init({
  orgId: "00000000-0000-0000-0000-000000000000",
  onDeinit: () => console.log("widget deinitialized")
});

Last updated