From 1198e2060a3a0430997f8f3415845ad188eed029 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 15 Nov 2025 08:55:15 +0000 Subject: [PATCH] completionId: cgen-4d207c6f0b384343941be2674849952c cgen-4d207c6f0b384343941be2674849952c --- client/pages/dashboards/NexusDashboard.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/pages/dashboards/NexusDashboard.tsx b/client/pages/dashboards/NexusDashboard.tsx index 68eec638..852e7fa6 100644 --- a/client/pages/dashboards/NexusDashboard.tsx +++ b/client/pages/dashboards/NexusDashboard.tsx @@ -51,7 +51,8 @@ export default function NexusDashboard() { 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 creator profile