Developer Toolkitsv1.0.0
Supabase Auth + Admin Kit for Next.js
Owner-only admin, email sign-in with 2-step verification and row-level-security SQL for Next.js.
Overview
A tested pattern for a private admin area in a Next.js app using Supabase. The admin is owner-only: every page and every Server Action re-checks the signed-in owner on the server, sign-in supports an authenticator-app second step, and the SQL migrations set up tables with row-level security and an audit log of changes. You receive the source code, the SQL files in order and a step-by-step setup guide.
Features
- Owner-only admin checked on the server
- Email and password sign-in with authenticator-app 2-step verification
- Row-level-security SQL migrations
- Audit log of admin changes
- Server Actions that re-check the owner on every write
- Setup guide.
Requirements
- Next.js App Router
- A Supabase project (the free plan works).
- Node.js 20 or newer
Installation
- Copy the lib/seo folder into your project
- Call buildMetadata() from each page's metadata
- Add the JSON-LD component to page that need structured data
- Set your site name and URL in the config file
Included files
License: Agency License
Use the product across unlimited projects for you or your clients.
You may
- Unlimited production deployments
- Client projects
- Modify the code freely
You may not
- Reselling or redistributing the source as-is
- Sub-licensing the product itself