diff --git a/chatdesk-ui/app/[locale]/setup/page.tsx b/chatdesk-ui/app/[locale]/setup/page.tsx index fea06ea..977df20 100644 --- a/chatdesk-ui/app/[locale]/setup/page.tsx +++ b/chatdesk-ui/app/[locale]/setup/page.tsx @@ -152,7 +152,8 @@ export default function SetupPage() { } const handleSaveSetupSetting = async () => { - const session = (await supabase.auth.getSession()).data.session + const supabaseClient = await supabase(); // Await the client creation + const session = (await supabaseClient.auth.getSession()).data.session if (!session) { // return router.push(`/${locale}/login`) //return (`${homePath}/login`)