first commit
This commit is contained in:
commit
8b2b772a32
31 changed files with 8994 additions and 0 deletions
15
src/app/dashboard/page.tsx
Normal file
15
src/app/dashboard/page.tsx
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"use client";
|
||||
|
||||
import { authClient } from "@/lib/auth-client";
|
||||
|
||||
export default function Dashboard() {
|
||||
const sesh = authClient.useSession();
|
||||
if (!sesh || !sesh.data) return <div>Not signed in</div>;
|
||||
if (sesh && sesh.data)
|
||||
return (
|
||||
<div>
|
||||
<h1>Dashboard</h1>
|
||||
<p>{sesh.data.user.email}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue