import { headers } from "next/headers"; import { redirect } from "next/navigation"; import { Button } from "@acme/ui/button"; import { auth, getSession } from "~/auth/server"; export async function AuthShowcase() { const session = await getSession(); if (!session) { return (
); } return (

Logged in as {session.user.name}

); }