Packages

better-auth

1.7.25 · 14 Nov 2026MIT20.8M / weekRepositoryHomepagenpmAtom feed

Your version

1.7.28

24 Nov 2026Where it was published

In short

12 fixed

Release note

The section about better-auth of a note shared by several packages.

better-auth

Bug Fixes

  • Fixed /device/code returning a 500 on a user or device code collision with the Drizzle adapter by retrying with a new code

  • Fixed concurrent email OTP requests for the same address so both emails carry the same valid code on databases with a unique verification.identifier

  • Fixed 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 signUpOnVerification to return a 400 PHONE_NUMBER_NOT_EXIST error instead of a 500

  • Fixed user deletion to report success only when the user is actually deleted, returning FAILED_TO_DELETE_USER when a hook vetoes or the database skips the delete

  • Fixed /revoke-session and /admin/revoke-user-session to stop reporting success when the session survives the revocation

  • Fixed revoking all of a user's sessions to fail when secondaryStorage cannot clear the cached sessions, instead of reporting success

  • Fixed getSession failing when a session cached in secondaryStorage is missing its user, by reading the user from the database

  • Fixed revoked sessions staying valid in secondary storage when a database after hook throws during password reset or user deletion

  • Fixed generateBackupCodes to read fresh user state so sessions cached before two-factor enrollment can generate codes and revoked sessions are rejected

  • Fixed /update-user with the username plugin 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.