@softr/sdk
Version:
The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.
11 lines • 498 B
TypeScript
//#region src/auth/idle-timeout.d.ts
/**
* Signs the visitor out of this browser after the idle time set in Studio's
* "End session if idle", and sends them to `/`. Activity in any tab of the app
* keeps the session alive. Does nothing for anonymous visitors.
*/
declare function useIdleSignOut(): void;
/** @deprecated `SoftrProvider` runs it. Remove the call when the app renders `SoftrProvider`. */
declare const useIdleTimeout: typeof useIdleSignOut;
//#endregion
export { useIdleTimeout };