diff options
Diffstat (limited to 'web/src/app/dashboard/page.js')
| -rw-r--r-- | web/src/app/dashboard/page.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/web/src/app/dashboard/page.js b/web/src/app/dashboard/page.js new file mode 100644 index 0000000..065bfb0 --- /dev/null +++ b/web/src/app/dashboard/page.js @@ -0,0 +1,16 @@ +import { redirect } from "next/navigation"; +import { auth } from "@/lib/auth"; +import SignOut from "@/app/components/sign-out"; + +export default async function Home() { + const session = await auth(); + if (!session) redirect("/"); + + return ( + <div> + <h1>Dashboard</h1> + <p>Welcome {session.user?.name}</p> + <SignOut /> + </div> + ) +} |
