Client Side Rendering Usage

@/components/client-example.tsx

This page fetches session data client side using the useSession React Hook.

import { useSession } from "next-auth/react"
const { data: session, status } = useSession();

It needs the 'use client' directive at the top of the file to enable client side rendering, and the SessionProvider component in client-example/page.tsx to provide the session data.

No session data, please Sign In first.