better-auth
1.7.25 · 14 Nov 2026MIT21M / weekRepositoryHomepagenpmAtom feed
Upgrading better-auth From 1.5.6 to 1.6.0
1 release in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking1.6.0
- Deprecated1.6.0
Security
13 advisories still affect 1.6.0
- Better Auth: Stale sessions persist after user deletion across admin, anonymous, and SCIM flowslow · GHSA-2vg6-77g8-24mp
- @better-auth/oauth-provider's OAuth authorization-code grant allows concurrent redemption when two token requests race the find-then-delete primitivehigh · GHSA-7w99-5wm4-3g79
- Better Auth has stored XSS in the auth-server origin via javascript: redirect_uri in oidc-provider and mcphigh · GHSA-86j7-9j95-vpqj
Upgrading to 1.7.7 clears them.
Fixes 1 advisory affecting 1.5.6
- Better Auth: OAuth refresh-token rotation forks the token family on concurrent redemptionhigh · GHSA-392p-2q2v-4372
Release by release
- Breaking
Aligned
freshAgecalculation with session creation time instead of update time - Deprecated
Deprecated
oidc-providerplugin in favor of@better-auth/oauth-provider - New
Added experimental OpenTelemetry instrumentation for endpoints, hooks, middleware, and database operations
- New
Added
resendStrategyoption to reuse existing OTP in email-otp plugin
- Breaking
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.