This commit is contained in:
hailin 2025-05-20 19:25:34 +08:00
parent 875412fb69
commit 1be8ebb79d
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ export default function WorkspaceLayout({ children }: WorkspaceLayoutProps) {
useEffect(() => {
;(async () => {
const supabaseClient = await supabase(); // Await the client creation
const session = (await supabaseClient.auth.getSession()).data.session
//const supabaseClient = await supabase(); // Await the client creation
const session = (await supabase.auth.getSession()).data.session
if (!session) {
// 跳转到带有 locale 的登录页面