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/README.md +3 -1
- package/dist/client/idle-manager.js +14 -1
- package/dist/client/tk-client.js +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +8 -3
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs.map +1 -1
- package/dist/middleware.js.map +1 -1
- package/dist/types.d.ts +8 -3
- package/package.json +1 -1
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
|
-
*
|
|
208
|
-
*
|
|
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
|
/**
|