feat(web): add SessionWatcher component for session management and handle session expiration

This commit is contained in:
2026-03-11 17:08:52 +08:00
parent 7bd4e379de
commit f1932676be
4 changed files with 51 additions and 0 deletions

View File

@@ -1,10 +1,12 @@
import { ReactNode } from "react";
import Sidebar from "@/components/sidebar";
import { ReactQueryProvider } from "@/components/query-provider";
import { SessionWatcher } from "@/components/session-watcher";
export default function DashboardLayout({ children }: { children: ReactNode }) {
return (
<div className="flex h-dvh bg-background">
<SessionWatcher />
<Sidebar />
{/* Main content */}