Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.6.12

29 May 2026Where it was published

1.7.27 is the newest release of 1.x.

In short

1 new22 fixed

Security

Release note

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

better-auth

Bug Fixes

  • Fixed field index ordering in getMigration migrations.

  • Fixed synthetic user construction to exclude extra fields.

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

  • Fixed changeEmail to return an error when emailVerification.sendVerificationEmail is missing, and URL-encoded callbackURL in verify-email links.

  • Fixed callbackURL URL-encoding in verify-email links for OAuth account linking and username sign-in.

  • Fixed role.authorize to reject empty action lists and correctly evaluate OR conditions on unknown resources.

  • Fixed missing exports of AdminClientOptions and OrganizationClientOptions.

  • Fixed email OTP sign-in failing with captcha errors under default captcha settings.

  • Fixed parseJSON to properly decode escape sequences in quoted strings.

  • Fixed cookie parsing to tolerate missing spaces after ; separators, preventing users behind certain proxies from being treated as logged-out.

  • Fixed getTrustedOrigins to respect the dynamic baseURL protocol option.

  • Fixed request mutation by cloning the request before passing it to the sendVerificationEmail callback.

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

  • Fixed oauth-proxy to forward specific error codes instead of collapsing all errors into user_creation_failed.

  • Fixed oauth-proxy flows failing with state_mismatch when production and preview environments use different secrets.

  • Fixed OAuth callback errors to forward specific error codes (state_not_found, state_invalid, state_mismatch) instead of the generic please_restart_the_process code.

  • Fixed OAuth state validation failures to redirect to the per-flow errorCallbackURL instead of the default error page.

  • Fixed OpenAPI schema generation to emit unique operationIds for endpoints that expose multiple HTTP methods.

  • Fixed organization invitations silently routing users to the wrong team when team IDs contained a comma.

  • Fixed deleteOrganization and removeMember to roll back on failure instead of leaving orphaned rows.

  • Fixed stateless session cache refresh to preserve the real session expiry instead of resetting it.

  • Fixed a session cookie leak that allowed session_token and session_data cookies to be captured and replayed to bypass 2FA when cookie caching is enabled.

  • Fixed missing username validation on the admin createUser endpoint.

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.