From 51ed624a2b1c4d2b143be6251e93a3e964e204a7 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 15 Nov 2025 08:55:22 +0000 Subject: [PATCH] completionId: cgen-64841431952c4a2d9b092dbdf3d62cd1 cgen-64841431952c4a2d9b092dbdf3d62cd1 --- client/pages/dashboards/FoundationDashboard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/pages/dashboards/FoundationDashboard.tsx b/client/pages/dashboards/FoundationDashboard.tsx index 2c70961f..e95ddb1c 100644 --- a/client/pages/dashboards/FoundationDashboard.tsx +++ b/client/pages/dashboards/FoundationDashboard.tsx @@ -49,7 +49,8 @@ export default function FoundationDashboard() { const loadDashboardData = async () => { try { setLoading(true); - const token = (await (window as any).supabaseClient.auth.getSession()).data?.session?.access_token; + const { data: { session } } = await supabase.auth.getSession(); + const token = session?.access_token; if (!token) throw new Error("No auth token"); // Load courses