better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
Upgrading better-auth From 1.6.16 to 1.6.17
1 release in betweenevery note read
Security
5 advisories still affect 1.6.17
- @better-auth/drizzle-adapter: Concurrent requests can exceed rate limits on PostgreSQLlow · GHSA-44jh-23m7-hpcf
- better-auth: OAuth state can be used as a Magic Link to sign in as another usercritical · GHSA-965c-763c-88jm
- better-auth: Device login approval does not show the requesting client or permissionshigh · GHSA-q84f-53jg-9ppm
Upgrading to 1.7.7 clears them.
Release by release
- New
Added an experimental
oauthPopupplugin for popup-based OAuth sign-in, enabling sign-in inside cross-site iframes by completing the OAuth flow in a popup and passing the session token back via thebearerplugin - New
Added
internalAdapter.reserveVerificationValuefor atomic single-use markers, ensuring exactly one concurrent caller succeeds and the rest see the marker as already taken, hardening replay protection across all verification flows. Database-backed storage is atomic; secondary-storage-only mode is best-effort. - New
Added the optional
incrementOneadapter method andSecondaryStorage.incrementfor atomic counter updates with conditional row guards, enabling strict enforcement of rate limits and usage counters. Adapters without native support fall back to a transaction-based approach. - Fixed
Fixed
getCookieCacheto returnnullfor an expired session instead of stale data, so middleware no longer treats an expired signed cookie as a live session.
- New
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.