Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Enterprise features are a tax. We paid it once, in the open.

Description and use

The @alphabros/enterprise npm package consolidates SSO, SCIM, audit logging, and policy enforcement into a single reusable module, enabling rapid deployment across multiple B2B products while reducing duplicated effort and maintenance overhead.

Problem

B2B products repeatedly rebuild SSO, SCIM, audit logs, and policy engines for each product, creating duplicated effort and maintenance overhead.

Outcome

Reduced duplicated effort by consolidating enterprise features into a single package, enabling rapid deployment across multiple products and simplifying maintenance.

Workflow

  • 1. Install @alphabros/enterprise and better-auth.
  • 2. Import enterprisePreset into better-auth configuration, passing product name, secrets key, and resolveEntitlements function.
  • 3. Run npx ab-enterprise migrate --out drizzle to copy migration files.
  • 4. Run npx ab-enterprise verify after deployment to ensure DB schema matches migrations.
  • 5. Deploy the package; SSO wizard, SCIM endpoints, audit log, and portal become available behind existing /api/auth.
  • 6. Use <ab-security-settings> component in UI to expose portal features to IT admins.

Evidence

We ran two audits before the first publish, one on the repository and supply chain, one on the code, and a whole-branch review after the fixes.

Source

Five minutes to a working setup…

Source

  • Record date: 2026-09-21T08:00:25.940Z