diff options
| author | MohamedBassem <me@mbassem.com> | 2024-10-05 17:14:59 +0000 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-10-05 17:15:36 +0000 |
| commit | f1c956a361539592d00836488181b69218798600 (patch) | |
| tree | ff975397e3ecb4063675962857441623082c2175 /apps/web/app | |
| parent | 3a8d197437868ca10d294f0174afa013f138ec33 (diff) | |
| download | karakeep-f1c956a361539592d00836488181b69218798600.tar.zst | |
feature(web): Async validate JWT account and sign out the user if they no longer exist
Diffstat (limited to 'apps/web/app')
| -rw-r--r-- | apps/web/app/dashboard/layout.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/web/app/dashboard/layout.tsx b/apps/web/app/dashboard/layout.tsx index 23c379cb..b0ac1f7d 100644 --- a/apps/web/app/dashboard/layout.tsx +++ b/apps/web/app/dashboard/layout.tsx @@ -2,6 +2,7 @@ import MobileSidebar from "@/components/dashboard/sidebar/ModileSidebar"; import Sidebar from "@/components/dashboard/sidebar/Sidebar"; import DemoModeBanner from "@/components/DemoModeBanner"; import { Separator } from "@/components/ui/separator"; +import ValidAccountCheck from "@/components/utils/ValidAccountCheck"; import serverConfig from "@hoarder/shared/config"; @@ -14,6 +15,7 @@ export default async function Dashboard({ }>) { return ( <div className="flex min-h-screen w-screen flex-col sm:h-screen sm:flex-row"> + <ValidAccountCheck /> <div className="hidden flex-none sm:flex"> <Sidebar /> </div> |
