Packages

better-auth

1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed

Your version

1.7.3

6 Sep 2026Where it was published

1.7.27 is the newest release of 1.x.

In short

1 deprecated4 new10 fixed

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

Security

3 advisories affect 1.7.3; 1.7.7 fixes them

Release note

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

better-auth

Features

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

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

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

Bug Fixes

  • Aligned generated OpenAPI required fields with runtime validation.

  • Handled malformed custom-scheme callback URLs without excessive processing.

  • Improved Auth0 domain normalization to avoid slow trailing-slash processing.

  • Prevented generic OAuth discovery failures from taking down the authentication API.

  • Tracked email OTP sign-ins in the last login method plugin.

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

  • Fixed getSession failures when cookie caching is disabled and cached session cookies remain.

  • Fixed TOTP re-enrollment replacing an active authenticator and its backup codes.

  • Prevented duplicate session requests and hydration mismatches in Nuxt useFetch.

  • Improved dynamic organization role permission check performance.

  • Added type-safe Nuxt useFetch integration for the Vue client's useSession hook.

  • Restored compatibility with 1.6 account schemas by identifying accounts with (providerId, accountId) instead of issuer.

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.