Skip to content
IC Reactor

AuthClientIdleOptions

Defined in: react/src/auth/types.ts:79

Idle-session configuration forwarded to the underlying AuthClient. @icp-sdk/auth v8 only; see AuthenticationClientOptions.idleOptions.

optional onIdle?: () => unknown

Defined in: react/src/auth/types.ts:81

Called once the user has been idle for idleTimeout ms.

unknown


optional idleTimeout?: number

Defined in: react/src/auth/types.ts:83

Idle timeout in ms.

600_000 (10 minutes)

optional captureScroll?: boolean

Defined in: react/src/auth/types.ts:85

Treat scroll events as activity.

false

optional scrollDebounce?: number

Defined in: react/src/auth/types.ts:87

Scroll debounce in ms.

100

optional disableIdle?: boolean

Defined in: react/src/auth/types.ts:89

Disable idle detection entirely.

false

optional disableDefaultIdleCallback?: boolean

Defined in: react/src/auth/types.ts:94

Disable the built-in idle callback, which signs the user out and reloads the page.

false