This commit introduces several new scripts for managing database operations, including user creation, permission grants, and data migrations. It also adds new documentation files to guide users through the setup and configuration processes. Additionally, the project structure is updated to enhance organization and maintainability, ensuring a smoother development experience for contributors. These changes support the ongoing transition to a web-based architecture and improve overall project functionality.
24 lines
416 B
TypeScript
24 lines
416 B
TypeScript
'use client';
|
|
|
|
import { useIdleLogout } from '@/hooks/useIdleLogout';
|
|
|
|
/**
|
|
* Component that handles idle logout functionality
|
|
* Must be rendered inside SessionProvider to use useSession hook
|
|
*/
|
|
export function IdleLogoutHandler() {
|
|
// Log out users after 2 hours of inactivity
|
|
useIdleLogout(2 * 60 * 60 * 1000); // 2 hours in milliseconds
|
|
|
|
// This component doesn't render anything
|
|
return null;
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|