pass user object to user context

This commit is contained in:
Milo Schwartz
2024-10-12 21:30:35 -04:00
parent 61fca6a1f6
commit 41cbde1474
6 changed files with 23 additions and 12 deletions

View File

@@ -9,10 +9,12 @@ export default async function Page() {
redirect("/auth/login");
}
console.log(user);
return (
<>
<LandingProvider user={user}>
<p>You are logged in!</p>
<p>Logged in as {user.email}</p>
</LandingProvider>
</>
);