Auth is never just login
Sessions, password resets, email verification, two-factor, passkeys, API tokens, and rate limits all arrive together the moment you have paying users.
Every subscription product needs the same foundation before it can charge anyone: sign-up, sessions, teams, roles, billing, transactional mail, a job queue, and somewhere for support to look things up. Stacks ships all of it, wired to the same models your product code uses.
The work that arrives whether you planned for it or not.
Sessions, password resets, email verification, two-factor, passkeys, API tokens, and rate limits all arrive together the moment you have paying users.
Retro-fitting an owning team onto a schema built for single users is the migration nobody enjoys. It is cheaper to have it from the start.
Plans gate features, invoices need storing, webhooks need to be idempotent, and dunning mail has to send itself.
Without an admin surface, every refund and every "what did this account do" becomes a database console session.
All of it in the same install, typed against the rest of your application.
The useAuth trait adds the auth columns and passkeys; teams, invitations, and roles ship as first-party models with their own actions and routes.
RBAC plus app/Gates.ts policies decide what a member of a team can do, checked the same way in a route, an action, and a view.
The billable trait puts customers, subscriptions, invoices, and payment methods on a model, with Stripe wired up and webhook handling included.
Welcome, verification, receipt, and dunning mail are Mail classes rendered from STX templates and queued like any other job.
The built-in dashboard reads your models, so accounts, subscriptions, and jobs are browsable on day one without you building a back office.
Rate limiting, feature flags, and queue-backed metering are configuration rather than a service you add later.
Every one of these ships in the same install. Follow one to see what it covers.
Buddy scaffolds, runs, and ships this the same way it does the rest of the app.
Projects of this shape usually grow into one of these.