From 8ae7efb20f161a59378d741bea96a90e2b23d856 Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 20 May 2025 17:59:15 +0800 Subject: [PATCH] . --- chatdesk-ui/app/[locale]/login/password/page.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chatdesk-ui/app/[locale]/login/password/page.tsx b/chatdesk-ui/app/[locale]/login/password/page.tsx index ddee596..fe83316 100644 --- a/chatdesk-ui/app/[locale]/login/password/page.tsx +++ b/chatdesk-ui/app/[locale]/login/password/page.tsx @@ -1,7 +1,8 @@ "use client" import { ChangePassword } from "@/components/utility/change-password" -import { supabase } from "@/lib/supabase/browser-client" +//import { supabase } from "@/lib/supabase/browser-client" +import { createClient } from "@/lib/supabase/browser-client" import { useRouter } from "next/navigation" import { useEffect, useState } from "react" @@ -17,6 +18,7 @@ export default function ChangePasswordPage() { useEffect(() => { ;(async () => { + const supabase = await createClient() const session = (await supabase.auth.getSession()).data.session if (!session) {