This commit is contained in:
hailin 2025-05-20 18:42:07 +08:00
parent 11257206d4
commit 7523c3c663
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,8 @@ export default function ChangePasswordPage() {
useEffect(() => {
;(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) {
// // 提取当前路径中的 locale 部分