UNPKG

@softr/sdk

Version:

The SDK for building Softr apps on TanStack Start. It lets an app interact with Softr: auth, datasources, workflows and integrations.

17 lines • 533 B
//#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. * * Call it once, in the root route's document component. * * @example * function RootDocument({ children }: { children: React.ReactNode }) { * useIdleTimeout() * // ... * } */ declare function useIdleTimeout(): void; //#endregion export { useIdleTimeout };