@paramms/chat-widget 1.0.28 → 1.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -34,6 +34,9 @@ export interface MountOptions {
34
34
  * origin (first-party cookie + localStorage). A returning visitor on the same
35
35
  * browser keeps their history; if storage is blocked they get a fresh chat. */
36
36
  token?: string;
37
+ /** Called when a signed token is rejected (expired): return a fresh token
38
+ * from your backend to renew the session without a reload. */
39
+ refreshToken?: () => Promise<string | null>;
37
40
  userId?: string;
38
41
  subject?: WidgetConfig['subject'];
39
42
  quickReplies?: string[];