better-auth-zenstack-multitenancy
better-auth-zenstack-multitenancy copied to clipboard
A multi-tenant Todo app built with better-auth and ZenStack
This is the companion project of the blog post When Embedded AuthN Meets Embedded AuthZ - Building Multi-Tenant Apps With Better-Auth and ZenStack.
The project is based on better-auth's Next.js demo project.
Getting Started
-
Copy ".env.example" to ".env" and fill in the variables.
-
Install dependencies
npm install -
Prepare the database
npx zenstack generate npx prisma db push -
Start dev server
npm run dev