better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
Upgrading better-auth From 1.7.8 to 1.7.27
19 releases in betweenevery note read
Security
- 1.7.15
Fixed organization and API key metadata, and OAuth proxy sign-ins with a
constructorfield inadditionalData, failing with a prototype pollution error
Release by release
- Fixed
Fixed the phone number plugin returning a 500 instead of a 400 from
/update-userwhen the request has no body - Fixed
Fixed the username plugin returning a 500 on
/sign-up/emailand/update-userwhen the request has no body; it now returns the same 400 as without the plugin - Fixed
Fixed
/sign-in/anonymousto validate the request origin, returning a 403 for browser requests from origins outsidetrustedOrigins - Fixed
Fixed unpinned tokens such as ID tokens and session JWTs to prefer a key for the primary
jwks.keyPairConfig.algalgorithm - Fixed
Fixed
getTestInstancefrombetter-auth/testto run every instance cleanup even when one fails, so databases and connections are not left open - Fixed
Fixed
POSTrequests without a body, such as/sign-outor/revoke-sessions, failing with a 415 on Deno, Next.js, Nuxt and other servers that pass an empty body stream
- Fixed
- New
Added a
getAccountFieldsoption to social providers for storing custom values on the provider account at sign-in - Fixed
Fixed expired verification values being returned to repeated lookups by deleting them when found
- Fixed
Fixed two-factor sign-in to reject an expired challenge before sending an OTP or counting a failed attempt
- New
- Fixed
Fixed endpoint errors dropping
Access-Control-Expose-Headersnames set earlier by a hook or the endpoint, so cross-origin browser clients keep access to exposed headers
- Fixed
- Fixed
Improved verification lookups to delete expired rows at most once a minute per server instance instead of on every lookup
- Fixed
- Fixed
Fixed
getTestInstancesharing one MongoDB database across test files, so parallel tests no longer delete each other's data
- Fixed
- Fixed
Fixed verification value consumption hanging on Cloudflare Workers when an earlier request for the same identifier ended mid-query
- Fixed
Fixed module-scope auth instances on Cloudflare Workers logging a schema validation error on every cold start by validating on first use
- Fixed
Fixed
deferSessionRefreshrefresh requests failing with a 415 error in Next.js and Nuxt - Fixed
Fixed
ReferenceError: window is not definedwhen a client session subscription is cleaned up after a test environment tears down its globals
- Fixed
- Fixed
Fixed plugin packages importing from the
better-authroot, so bundlers no longer emit unused Kysely chunks when used withbetter-auth/minimal - Fixed
core: Use ObjectId-shaped derived ids for Prisma ObjectId columns
- Fixed
Fixed the device approval page showing a valid code as invalid when the same signed-in user looked it up twice at once, such as under React Strict Mode
- Fixed
Fixed sign-ins with a
genericOAuthprovider usingdiscoveryUrland OAuth provider requests usingresourceshanging on Cloudflare Workers
- Fixed
1.7.20nothing new or fixed in the note
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.