better-auth
1.7.25 · 14 Nov 2026MIT20.8M / weekRepositoryHomepagenpmAtom feed
In short
12 fixed
Release note
The section about better-auth of a note shared by several packages.
better-auth
Bug Fixes
Fixed
/device/codereturning a 500 on a user or device code collision with the Drizzle adapter by retrying with a new codeFixed concurrent email OTP requests for the same address so both emails carry the same valid code on databases with a unique
verification.identifierFixed sending a new email OTP to replace the earlier code for that address so stale codes no longer cause refusals
Fixed sending a new phone number OTP to replace the earlier code so a code sent during a check stays valid
Fixed verifying an unregistered phone number without
signUpOnVerificationto return a 400PHONE_NUMBER_NOT_EXISTerror instead of a 500Fixed user deletion to report success only when the user is actually deleted, returning
FAILED_TO_DELETE_USERwhen a hook vetoes or the database skips the deleteFixed
/revoke-sessionand/admin/revoke-user-sessionto stop reporting success when the session survives the revocationFixed revoking all of a user's sessions to fail when
secondaryStoragecannot clear the cached sessions, instead of reporting successFixed
getSessionfailing when a session cached insecondaryStorageis missing its user, by reading the user from the databaseFixed revoked sessions staying valid in secondary storage when a database
afterhook throws during password reset or user deletionFixed
generateBackupCodesto read fresh user state so sessions cached before two-factor enrollment can generate codes and revoked sessions are rejectedFixed
/update-userwith theusernameplugin rejecting your own username as already taken when called with a bearer token
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.