#Auth
9 entries
Prompt to Add Better Auth to Next.js with PostgreSQL
A copy-paste prompt for adding Better Auth and PostgreSQL session handling to a Next.js App Router project.
Prompt to Add Stripe Checkout to a Next.js App
AI agent prompt to add Stripe Checkout with webhook handling, customer portal, and subscription status to a Next.js App Router project.
Prompt to Create an Admin Dashboard in Next.js
AI agent prompt to build a protected Next.js admin dashboard with data tables, server-side auth guards, and a sidebar layout using Tailwind.
AI Coding Rules for Auth and Security
AGENTS.md rules for authentication and security that prevent agents from rolling custom crypto, leaking secrets, or bypassing authorization checks.
Prompt-to-PR: Add an Admin Data Table
SOP for adding a server-side paginated, sortable, searchable admin data table in Next.js using TanStack Table and a PostgreSQL query — no ORM magic.
Prompt-to-PR: Add Better Auth to a Next.js App
Full SOP for wiring Better Auth into a Next.js App Router project — sessions, email/password, OAuth, and middleware protection in one pass.
Checklist for Reviewing AI-Generated Auth Code
A human review checklist for authentication code written by AI coding agents — sessions, JWTs, OAuth flows, and authorization logic for web apps.
Checklist for Reviewing AI-Generated Stripe Code
A human review checklist for Stripe integration code written by AI coding agents — webhook security, idempotency, race conditions, and payment flows.
Next.js SaaS Starter — Context Pack
Copyable context pack for a Next.js SaaS app with App Router, Better Auth, Stripe billing, and Postgres so your AI agent works correctly from prompt one.