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.
-
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