better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
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
- Criticalbetter-auth: OAuth state can be used as a Magic Link to sign in as another userGHSA-965c-763c-88jm · 27 Oct 2026Fixed in 1.7.7
- Highbetter-auth: OAuth Proxy lets an attacker sign in as another userGHSA-r4xp-prcw-77qf · 27 Oct 2026Fixed in 1.7.7
- Low@better-auth/drizzle-adapter: Concurrent requests can exceed rate limits on PostgreSQLGHSA-44jh-23m7-hpcf · 27 Oct 2026Fixed in 1.7.7
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
isPasswordCompromisedfor 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
getSessionfailures 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
useFetchintegration for the Vue client'suseSessionhook.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.