Back to peal.dev

DOCS · ALL TEMPLATES

Pick a template,read its docs

Each template has its own guide — setup, integrations, the bugs we already hit. No shared docs, no generic boilerplate. Just the parts that matter for the code you actually have in front of you.

Written by the people who shipped the codeUpdated when we change things
TypeScript
import { auth } from "@/lib/auth";
import { headers } from "next/headers";
import { redirect } from "next/navigation";

export default async function DashboardPage() {
  const session = await auth.api.getSession({
    headers: await headers(),
  });
  if (!session?.user) redirect("/login");

  return <Dashboard user={session.user} />;
}

straight out of lib/auth.ts — every template ships with patterns like this

Pick your template

3 available

New template? New docs.

Every template we ship gets its own docs on day one. If a template you bought isn't listed yet, message us — it means we forgot to push, not that we forgot to write it.