"use client"; import Link from "next/link"; import { useSession } from "next-auth/react"; export default function ClientSessionPage() { const { data: session, status } = useSession(); return (

/client session example

This page reads session in the browser with useSession(). Access token and ID token are not exposed here.

{status === "loading" ? (

Loading session…

) : session ? (
{JSON.stringify(session, null, 2)}
) : (

No active session.

)}
Home Server example
); }