Replace session with user in various files

This change mainly involves replacing 'session' with 'user' in various files in several applications. The function calls related to 'session' have been refactored to reflect 'user'. The '@supabase/supabase-js' package dependency has
This commit is contained in:
giancarlo
2024-03-28 21:14:12 +08:00
parent 15d4533949
commit 348eec8495
14 changed files with 50 additions and 117 deletions

View File

@@ -8,12 +8,12 @@ async function SiteLayout(props: React.PropsWithChildren) {
const client = getSupabaseServerComponentClient();
const {
data: { session },
} = await client.auth.getSession();
data: { user },
} = await client.auth.getUser();
return (
<>
<SiteHeader session={session} />
<SiteHeader user={user} />
{props.children}