next-better-auth-start/src/app/dashboard/page.tsx
2026-02-13 09:58:09 +01:00

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>
);
}