The problem
Every product that serves many companies needs the same foundation (sign-in, company workspaces, who-can-do-what and billing), and building it from scratch each time is slow and easy to get wrong.
What I built
- Accounts and companies: sign-in, organizations and an organization switcher.
- Permissions: roles, plus checks on which company and which records you own.
- Billing: Stripe built in.
- One set of rules: the same validation code checks both the forms and the API.
How AI helped
I documented each decision (sessions vs tokens, the permission model, billing) with the research behind it, so later AI-assisted work follows the same reasoning.
The result
New multi-company apps can start with auth, permissions and billing already done.