This commit is contained in:
parent
875412fb69
commit
1be8ebb79d
|
|
@ -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 的登录页面
|
||||
|
|
|
|||
Loading…
Reference in New Issue