Skip to main content

# resetUserIdleTime

    const resetUserIdleTime: ResetUserIdleTimeFn;

Resets the user idle time counter. Call this when user performs an action to extend their session.

## Param​

If true, also resets the warning modal state (default: false)

## Example​

    // Reset idle time on user interaction
    document.addEventListener('click', () => {
      resetUserIdleTime();
    });

    // Reset and close warning modal
    resetUserIdleTime(true);