Skip to content

v2.2.1

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Aug 20:55
· 2 commits to main since this release

2.2.1 (2026-08-23)

Bug Fixes

  • cli: npx better-auth-firebase-auth backfill-account-issuers — the 1.7 issuer backfill as a command, dry run by default (97a5372)
  • server: backfillAccountIssuers(auth) — run the Better Auth 1.7 issuer backfill through your configured database adapter, no SQL needed (4cf1a41)
  • server: re-parent a Firebase account left orphaned by a deleted user — sign-in now points the account row at the resolved user instead of the dead user id (49fa815)
  • server: warn at startup while Firebase account rows still lack an issuer — the exact backfill command, instead of silently broken account links (3277102)

Upgrade notes

  • The 1.7 issuer backfill is now one commandnpx better-auth-firebase-auth backfill-account-issuers (dry run; add --apply to write). It finds and imports your betterAuth(...) config like npx auth migrate does and runs through your database adapter. Also available programmatically: await backfillAccountIssuers(auth) from better-auth-firebase-auth/server; the SQL variant remains in the README.
  • Orphaned accounts self-heal on sign-in — if a user row was deleted but its Firebase account row survived, sign-in now re-points that row at the resolved user instead of leaving it on the dead user id.
  • The plugin now warns at startup (Better Auth ≥ 1.7) while Firebase account rows still lack an issuer, naming the exact backfill command — migrationChecks: false disables the check.