mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-05 01:19:29 +00:00
pass user object to user context
This commit is contained in:
@@ -3,7 +3,7 @@ import "./globals.css";
|
||||
import { Roboto } from "next/font/google";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: "Pangolin",
|
||||
title: process.env.NEXT_PUBLIC_APP_NAME,
|
||||
description: "",
|
||||
};
|
||||
|
||||
|
||||
@@ -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>
|
||||
</>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user