Skip to content

chore(deps): update dependency better-auth to v1.7.28 - #113

Merged
nedtwigg merged 4 commits into
mainfrom
renovate/better-auth-1.x
Nov 28, 2026
Merged

nedtwigg merged 4 commits into
mainfrom
renovate/better-auth-1.x

Conversation

@renovate

@renovate renovate Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
better-auth (source) 1.7.27 → 1.7.28 age adoption passing confidence

Release Notes

better-auth/better-auth (better-auth)

v1.7.28

Compare Source

Patch Changes
  • #​12806 47a77c0 Thanks @​bytaesu! - Revoked sessions are now removed from secondary storage even when a database after hook throws during password reset or user deletion. Before, they could stay valid until they expired.

  • #​12858 7e229f0 Thanks @​bytaesu! - Deleting a user no longer reports success when a database read fails, a user.delete.before hook vetoes the delete, or the database skips it without an error. A failed read now surfaces as an error. A veto or a skipped delete answers FAILED_TO_DELETE_USER and keeps the user's sessions and accounts, on databases with transactions for a skipped delete. user.delete.before now runs before the session and account deletes.

  • #​12853 2ba7622 Thanks @​bytaesu! - Fix /device/code returning a 500 on a user or device code collision with the Drizzle adapter. The collision is now retried with a new code, as with the other adapters.

  • #​12893 a3a9d2d Thanks @​bytaesu! - When two email OTP requests for the same address collide on a database with a unique verification.identifier, both emails now carry the same code when it can be read back. Before, the code in one of the emails was rejected as invalid.

  • #​12893 a3a9d2d Thanks @​bytaesu! - Sending a new email OTP now replaces the earlier code for that address instead of keeping it. Before, a code resent after a wrong guess, or in the same millisecond as another send, could be refused while the earlier code still worked.

  • #​12893 a3a9d2d Thanks @​bytaesu! - Sending a new phone number OTP now replaces the earlier code for that number instead of keeping it, so a code sent while another one is being checked stays valid.

  • #​12893 a3a9d2d Thanks @​bytaesu! - Verifying a phone number that no user has, without signUpOnVerification, now returns a 400 PHONE_NUMBER_NOT_EXIST error instead of a 500.

  • #​12858 7e229f0 Thanks @​bytaesu! - /revoke-session and /admin/revoke-user-session no longer report success when the session survives, such as when a session.delete.before hook vetoes the delete or the database read before the delete fails.

  • #​12858 7e229f0 Thanks @​bytaesu! - Revoking all of a user's sessions now fails when secondaryStorage cannot clean up the cached sessions, after the remaining delete hooks have run. Previously the call reported success, and the cached sessions could keep working until they expired.

  • #​12858 7e229f0 Thanks @​bytaesu! - A session cached in secondaryStorage without its user no longer breaks getSession. The user is now read from the database, where getSession previously failed for every request until the cached session expired.

  • #​12907 d079059 Thanks @​gustavovalverde! - generateBackupCodes refreshes store-backed sessions before checking whether two-factor authentication is enabled. A session cached before enrollment can now generate backup codes, and a revoked session is rejected even while its cookie is still cached.

  • #​12860 3011e5c Thanks @​bytaesu! - The username plugin now checks usernames on /update-user against the session the endpoint resolved, so re-sending your own username with a bearer token no longer fails as already taken. Signed-out /update-user calls with a taken username now return 401 like other signed-out calls.

  • Updated dependencies [47a77c0, 7e229f0, 35df753, ddec4d7, 7e229f0, a879d3d]:


Configuration

📅 Schedule: (in timezone America/Los_Angeles)

  • Branch creation
    • Only on Thursday (* * * * 4)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/better-auth-1.x branch from 47bbe97 to 4865208 Compare November 28, 2026 04:56
nedtwigg and others added 2 commits November 27, 2026 20:59
Better Auth 1.7.28 draws one more random value on the email-OTP sign-in
path, so every seeded ID after it shifts by one draw. Only ID values
change in the snapshots; the structure and the OTP email are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@renovate

renovate Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@nedtwigg
nedtwigg merged commit 5786e49 into main Nov 28, 2026
1 check passed
@renovate
renovate Bot deleted the renovate/better-auth-1.x branch November 28, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant