import { Button } from "@/components/ui/button"; import { auth } from "@/lib/auth"; import { headers } from "next/headers"; import Link from "next/link"; export default async function Home() { const session = await auth.api.getSession({ headers: headers() }) return (

Better Auth.

Official demo to showcase better-auth. features and capabilities.
* All auth related features implemented on this demo are natively supported by better-auth. ( no custom backend code is written )

{ session ? (
) : ( ) }
); }