astro-tokenkit 1.0.21 → 1.0.23

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
@@ -204,12 +204,17 @@ interface IdleConfig {
204
204
  timeout: number;
205
205
  /**
206
206
  * Callback when idle timeout is reached.
207
- * NOTE: This function is only used if you manually initialize IdleManager.
208
- * If using the Astro integration, use window.addEventListener('tk:idle', ...) instead.
207
+ * Can be a function OR a string (name of a global function on window).
208
+ *
209
+ * NOTE: If using the Astro integration, passing a function here won't work
210
+ * in astro.config.mjs because it's not serializable. Use a string name
211
+ * of a global function or window.addEventListener('tk:idle', ...) instead.
209
212
  */
210
- onIdle?: () => void;
213
+ onIdle?: (() => void) | string;
211
214
  /** Whether to automatically logout on idle (default: true) */
212
215
  autoLogout?: boolean;
216
+ /** Whether to reload the page after automatic logout (default: true) */
217
+ reload?: boolean;
213
218
  /** Whether to monitor activity only on the active tab (default: true) */
214
219
  activeTabOnly?: boolean;
215
220
  /**