Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Upgrading better-auth From 1.5.4 to 1.7.7

46 releases in betweenevery note read

Other targets from 1.5.4Newest 1.x1.7.27Latest1.7.25
  1. 1.5.4yours
  2. 2 releases
  3. 1.6.0breaking
  4. 1 release
  5. 1.6.2security
  6. 8 releases
  7. 1.6.11security
  8. 24 releases
  9. 1.7.0breaking
  10. 6 releases
  11. 1.7.7target

Start here

Before you upgrade

Tick each one off as you go
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0
  • Breaking1.7.0

Security

Fixes 13 advisories affecting 1.5.4

  • Fixed a critical Magic Link account-takeover vulnerability.

    1.7.7
  • Fixed an invitation takeover vulnerability by enabling requireEmailVerificationOnInvitation by default and extending the verification gate to getInvitation and listUserInvitations

    1.6.11
  • Fixed OAuth state verification against cookie-stored nonce to prevent CSRF

    1.6.2

Release by release

  1. 1.7.7

    Security fix30 Sep 20265 fixes
    • Security

      Fixed a critical Magic Link account-takeover vulnerability.

    • Fixed

      Fixed ID-token sign-in ignoring the social provider’s disableSignUp setting.

    • Fixed

      Fixed OAuth Proxy accepting sign-in state as a provider profile. Upgrade all OAuth Proxy participants together; see the OAuth Proxy upgrade guidance.

    • Fixed

      Fixed CAPTCHA errors missing the JSON Content-Type header.

    • Fixed

      Fixed the active organization failing to refresh after sign-in when a session hook selects the initial organization.

    • Fixed

      Fixed rate-limit errors missing the JSON Content-Type header.

  2. 1.7.6

    24 Sep 20262 new · 6 fixes
    • New

      Added support for a bannedUserMessage function that receives the banned user, allowing sign-in errors to include details such as the ban reason.

    • New

      Added Vercel BotID as a captcha provider for protected authentication routes.

    • Fixed

      Passwords over maxPasswordLength are now rejected with PASSWORD_TOO_LONG before hashing or verification.

    • Fixed

      Fixed React hydration mismatches when session or plugin auth queries resolve before streamed components hydrate.

  3. 1.7.5

    14 Sep 20261 new · 4 fixes
    • New

      Added database.schemaName support for direct PostgreSQL connections.

    • Fixed

      Improved server-side logging for Cloudflare Turnstile verification failures.

    • Fixed

      Fixed PostgreSQL migrations incorrectly identifying tables and views across schemas.

    • Fixed

      Fixed MySQL index validation for existing string columns.

    • Fixed

      Removed the unused optional better-sqlite3 peer dependency to prevent installation conflicts.

  4. 1.7.4

    10 Sep 20263 new
    • New

      Added experimental.instrumentation.enabled to disable OpenTelemetry span creation per auth instance.

    • New

      Added support for additional session fields in testUtils auth helpers.

    • New

      Added Vitest 5 support to the testing utilities.

  5. 1.7.3

    Deprecation6 Sep 20264 new · 10 fixes
    • Deprecated

      Fixed callback hooks being skipped after proxied OAuth sign-ins and preserved server state when callback cookies are unavailable. The legacy /oauth-proxy-callback endpoint is deprecated and will be removed in the next minor release.

    • New

      Added Cloudflare as a built-in social provider with client-secret and PKCE support.

    • New

      Enabled schema validation during initialization by default, including in production, and rejected authentication requests on detected mismatches.

    • New

      Added isPasswordCompromised for checking passwords against Have I Been Pwned in custom server-side flows.

  6. 1.7.2

    26 Aug 20261 new · 9 fixes
    • New

      Added warnings for invalid signed session data in the cookie cache.

    • Fixed

      Fixed permanent user bans to clear expiration dates from previous temporary bans.

    • Fixed

      Fixed client types with more plugins being assignable to types declaring fewer plugins.

    • Fixed

      Fixed disabled MyISAM indexes from satisfying migration index checks.

  7. 1.7.1

    18 Aug 20261 new · 1 fix
    • New

      Added native database transaction support to test instances for PostgreSQL and MySQL.

    • Fixed

      Updated bundled dependencies (jose, nanostores, noble crypto packages, SimpleWebAuthn) to their latest compatible releases, with no changes required to existing projects.

  8. 1.7.0

    Migration needed18 Aug 202624 new · 15 fixes
    • Breaking

      Moved database joins out of experimental into the stable advanced.database.joins option

    • Breaking

      Scoped account identity by trusted issuer, keying accounts on (issuer, accountId)

    • Breaking

      Required captcha endpoint entries to match full auth paths, with wildcard support

    • Breaking

      Moved the MCP plugin into its own @better-auth/mcp package built on the OAuth provider

3 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.