Nfs Add Auth

Add Better Auth to an existing project scaffolded with nextjs-fullstack-starter that initially skipped auth. Use this when the user says 'add auth', 'add login', 'wire Better Auth', 'add user accounts', invokes /nfs-add-auth, or starts asking permission/session questions in a project without auth wired. Wires up the Better Auth Prisma adapter, session helper, requirePermission helper, /login page (credentials), the auth route handler at /api/auth/[...all], and the User / Session / Account / Verification Prisma models. Updates the (dashboard) layout to call requireSession() and routes Server Actions through requireSession() first.

juncoding 755e1e0 4.6 KB Updated

File contents

juncoding/nextjs-fullstack-starter/tree/main/skills/nfs-add-auth commit 755e1e0551

Frequently asked questions

npx skillmds@latest add juncoding/nfs-add-auth