Packages

better-auth

1.7.25 · 14 Nov 2026MIT20.8M / weekRepositoryHomepagenpmAtom feed

Upgrading better-auth From 1.0.12 to 1.6.13

124 releases in betweennotes for 114

Other targets from 1.0.12Newest 1.x1.7.28Latest1.7.25
  1. 1.0.12yours
  2. 16 releases
  3. 1.1.6security
  4. 38 releases
  5. 1.3.10security
  6. 35 releases
  7. 1.4.11security
  8. 11 releases
  9. 1.5.0security
  10. 8 releases
  11. 1.6.2security
  12. 8 releases
  13. 1.6.11security
  14. 1 release
  15. 1.6.13target
20+
changes to make
18
advisories fixed
563+
new
1159+
fixes

Counted from 114 of 124 release notes. Advisories are counted from the advisory database, in full.

Start here

Before you upgrade

Tick each one off as you go
  • Breaking1.6.2
  • Breaking1.6.0
  • Breaking1.5.0
  • Breaking1.5.0
  • Breaking1.5.0
  • Breaking1.4.9
  • Breaking1.4.6
  • Breaking1.4.0
  • Breaking1.4.0
  • Breaking1.4.0

Security

Fixes 18 advisories affecting 1.0.12

  • 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
  • customSyntheticUser option: Support plugin fields in enumeration-protected responses (#8097).

    1.5.0
  • Prevent OTP reuse via race condition: Atomically invalidate OTPs on use.

    1.5.0
  • Prevent user enumeration: In email-otp when sign-up is disabled, and on sign-up with required email verification.

    1.5.0
  • Stricter default rate limits: For password reset and phone number verification endpoints.

    1.5.0
  • Separate CSRF and origin checks: More granular request validation.

    1.5.0
  • Prevent trial abuse: Check all user subscriptions before granting a free trial.

    1.5.0
  • SAML ACS error redirect hardening: Prevent open redirect in error flows.

    1.5.0
  • IPv6 address normalization and subnet support: For rate limiting and IP-based rules.

    1.5.0

Release by release

  1. 1.6.13

    31 May 20261 new · 6 fixes
    • New

      Added support for server-side accountInfo calls with an optional userId parameter, allowing trusted callers to read provider profiles without constructing session headers

    • Fixed

      Clarified that viewBackupCodes is a server-only function not accessible via HTTP in its API documentation

    • Fixed

      Fixed Google One Tap authenticating the wrong user when the presented Google account is already linked to a different local user, by resolving identity through the shared OAuth path

    • Fixed

      Fixed storeStateStrategy defaulting to "cookie" instead of "database" when only secondaryStorage is configured, preventing oversized-cookie errors on platforms like AWS Lambda

    • Fixed

      Fixed updateUserInfoOnLink not being applied when linking accounts through the standard OAuth redirect flow

    • Fixed

      Fixed oidc-provider and mcp plugins accepting invalid redirect_uri schemes such as javascript: and data:

    • Fixed

      Fixed organization logo not accepting null, preventing users from clearing an existing logo on create and update

  2. 1.6.12

    29 May 20261 new · 22 fixes
    • New

      Added accessTokenExpiresIn config option to genericOAuth for providers that omit expires_in in their token response.

    • Fixed

      Fixed field index ordering in getMigration migrations.

    • Fixed

      Fixed synthetic user construction to exclude extra fields.

    • Fixed

      Fixed session cookie refresh headers not being forwarded when resolving sessions.

  3. 1.6.11

    Security fix12 May 20261 new · 6 fixes
    • Security

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

    • New

      Added an error code to the change-email-disabled response to help clients identify the rejection reason

    • Fixed

      Fixed access-control role statement types so predefined organization roles expose only their configured permissions in TypeScript

    • Fixed

      Fixed the anonymous plugin to correctly call onLinkAccount when email verification triggers auto sign-in

  4. 1.6.10

    9 May 20262 new · 18 fixes
    • New

      Added a warning when the cookie plugin is placed last in the plugins array

    • New

      Added authClient.siwe.getNonce() as a compatibility alias for the SIWE nonce endpoint

    • Fixed

      Exposed refreshUserSessions on the internal adapter

    • Fixed

      Fixed organization invitation roles to accept dynamic access control roles

  5. 1.6.9

    24 Apr 20261 fix
    • Fixed

      Fixed instrumentation resolution in the adapter factory so edge and browser environments correctly use the pure variant

  6. 1.6.8

    23 Apr 20262 fixes
    • Fixed

      Fixed mapProfileToUser fallback for OAuth providers that may omit email from their profile response

    • Fixed

      Fixed support for passing id through beforeCreateTeam and beforeCreateInvitation hooks

  7. 1.6.7

    22 Apr 20261 new · 4 fixes
    • New

      Added support for an array of client IDs as the ID token audience in social providers

    • Fixed

      Fixed response headers being lost when an APIError is thrown

    • Fixed

      Fixed browser and edge runtime errors by serving a no-op ./instrumentation module in those environments

    • Fixed

      Fixed a crash when parsing OAuth2 state with an undefined request body

    • Fixed

      Fixed callbackOnVerification not being called when updatePhoneNumber is enabled

  8. 1.6.6

    21 Apr 20261 new · 3 fixes
    • New

      Added support for removing a phone number via updateUser({ phoneNumber: null })

    • Fixed

      Fixed preservation of the Partitioned attribute when forwarding Set-Cookie headers

    • Fixed

      Fixed boolean coercion for the disableRefresh query parameter in custom session validation

    • Fixed

      Fixed incorrect inference of team additional fields in the organization plugin

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