Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.6.10

9 May 2026Where it was published

1.7.27 is the newest release of 1.x.

In short

2 new18 fixed

Security

12 advisories affect 1.6.10; 1.7.7 fixes them

7 more

Release note

The section about better-auth of a note shared by several packages.

better-auth

Bug Fixes

  • Exposed refreshUserSessions on the internal adapter

  • Fixed organization invitation roles to accept dynamic access control roles

  • Improved link accessibility

  • Fixed incorrect email casing in one-tap, email-otp, and email-verification flows

  • Fixed OpenAPI schema for POST /sign-in/social mis-declaring required fields

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

  • Fixed useSession not revalidating after admin impersonation starts or stops

  • Fixed duplicate Set-Cookie headers being emitted on redirect responses from social sign-in and magic-link endpoints

  • Fixed the bearer plugin writing duplicate cookie entries when merging the session token into request headers

  • Fixed captcha plugin breaking the email-otp flow

  • Fixed email enumeration protection not applying when emailAndPassword.autoSignIn is false

  • Fixed a TypeError caused by non-ASCII characters in OAuth error descriptions on redirect

  • Renamed internalAdapter.deleteAccount parameter from accountId to id to reflect that it queries by primary key

  • Fixed OAuth callbacks accepting a missing provider account ID, which could link accounts under an undefined id

  • Fixed cancelPendingInvitationsOnReInvite having no effect, where re-inviting the same email always returned USER_IS_ALREADY_INVITED_TO_THIS_ORGANIZATION

  • Fixed a TS2742 type error caused by missing re-exports when using additionalFields in the organization plugin

  • Fixed useActiveMemberRole retaining a previous user's role after sign-out in SPA flows

  • Fixed setActiveTeam to only accept teams from the currently active organization

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

  • Fixed callbackURL being ignored on signIn.username, so it now redirects correctly like signIn.email

For detailed changes, see CHANGELOG

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.