This commit is contained in:
hailin 2025-05-20 18:44:30 +08:00
parent 7523c3c663
commit 15fbab270e
1 changed files with 2 additions and 1 deletions

View File

@ -96,7 +96,8 @@ export default function SetupPage() {
useEffect(() => { useEffect(() => {
;(async () => { ;(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) { if (!session) {
// 强制跳转到带有 locale 的 login 页面 // 强制跳转到带有 locale 的 login 页面