feat: add global auth listener with hard reload on logout

This commit is contained in:
2025-12-18 21:45:27 +01:00
parent 6f32bfa17f
commit 17727243be
2 changed files with 30 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import { I18nProvider } from "@/i18n/I18nContext";
import { SessionProvider } from "@/context/SessionContext";
import ActiveSessionBanner from "@/components/ActiveSessionBanner";
import MainContentWrapper from "@/components/MainContentWrapper";
import AuthListener from "@/components/AuthListener";
const inter = Inter({ subsets: ["latin"] });
@@ -46,6 +47,7 @@ export default function RootLayout({
<body className={inter.className}>
<I18nProvider>
<SessionProvider>
<AuthListener />
<ActiveSessionBanner />
<MainContentWrapper>
<PWARegistration />