15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
"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>
|
|
);
|
|
}
|