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

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

Описание и применение

Пакет @alphabros/enterprise объединяет SSO, SCIM, аудит‑лог и механизм политик в одном npm‑модуле, позволяя быстро внедрить эти функции в несколько B2B‑продуктов, сократив дублирование кода и усилия по обслуживанию.

Задача

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

Результат

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

Рабочий процесс

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

Доказательства

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.

Источник

Five minutes to a working setup…

Источник

  • Дата записи: 2026-09-21T08:00:25.940Z