Skip to content

chore(deps): bump the better-auth group across 1 directory with 2 updates - #295

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/better-auth-dc2b93f667
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bun/better-auth-dc2b93f667

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the better-auth group with 2 updates in the / directory: @better-auth/drizzle-adapter and better-auth.

Updates @better-auth/drizzle-adapter from 1.7.26 to 1.7.28

Release notes

Sourced from @​better-auth/drizzle-adapter's releases.

v1.7.28

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 (#12853)
  • Fixed concurrent email OTP requests for the same address so both emails carry the same valid code on databases with a unique verification.identifier (#12893)
  • Fixed sending a new email OTP to replace the earlier code for that address so stale codes no longer cause refusals (#12893)
  • Fixed sending a new phone number OTP to replace the earlier code so a code sent during a check stays valid (#12893)
  • Fixed verifying an unregistered phone number without signUpOnVerification to return a 400 PHONE_NUMBER_NOT_EXIST error instead of a 500 (#12893)
  • 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 (#12858)
  • Fixed /revoke-session and /admin/revoke-user-session to stop reporting success when the session survives the revocation (#12858)
  • Fixed revoking all of a user's sessions to fail when secondaryStorage cannot clear the cached sessions, instead of reporting success (#12858)
  • Fixed getSession failing when a session cached in secondaryStorage is missing its user, by reading the user from the database (#12858)
  • Fixed revoked sessions staying valid in secondary storage when a database after hook throws during password reset or user deletion (#12806)
  • Fixed generateBackupCodes to read fresh user state so sessions cached before two-factor enrollment can generate codes and revoked sessions are rejected (#12907)
  • Fixed /update-user with the username plugin rejecting your own username as already taken when called with a bearer token (#12860)

For detailed changes, see CHANGELOG

@better-auth/oauth-provider

Bug Fixes

  • Fixed Client ID Metadata Document registration treating a failed insert as a registration race when wrapped error query parameters contain words like "duplicate", and now returning the original database error (#12853)
  • Fixed the OAuth provider WWW-Authenticate: Basic challenge to include the realm parameter required by RFC 7617 (#12789)
  • Fixed client IDs containing characters not allowed by RFC 6749 causing a 500 on PostgreSQL, now returning an invalid_client response (#12854)
  • Fixed requesting an OAuth device code without a resource failing with a 500 on Prisma with PostgreSQL, CockroachDB, or MongoDB (#12854)
  • Fixed oauthProviderClient requests without a body failing with a 415 error on pages with a signed OAuth query (#12863)
  • Fixed client assertion verification to use the most recently cached key set when overlapping JWKS refreshes finish out of order (#12850)

For detailed changes, see CHANGELOG

@better-auth/core

Bug Fixes

  • 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 (#12858)
  • Fixed revoking all of a user's sessions to fail when secondaryStorage cannot clear the cached sessions, instead of reporting success (#12858)
  • Fixed the Drizzle schema check being dropped when a project resolves two copies of @better-auth/core (#12905)
  • Fixed after-commit hooks queued with onError not running when an earlier queued hook throws (#12806)
  • Fixed a timed-out JWKS refresh blocking a refresh against a newer cached key set (#12850)

For detailed changes, see CHANGELOG

auth

Bug Fixes

  • Improved auth info to redact more secret variants, including snake_case, kebab-case, uppercase, plural names, private key passphrases, and nested values (#12896)

... (truncated)

Changelog

Sourced from @​better-auth/drizzle-adapter's changelog.

1.7.28

Patch Changes

  • #12940 35df753 Thanks @​elango5292! - The relations-v2 Drizzle adapter no longer throws Unexpected 'undefined' in filter value on drizzle-orm 1.0.0-rc.5 and later when a joined findMany has no where, such as listing an organization's members or invitations. The query now returns the rows unfiltered.

1.7.27

Commits

Updates better-auth from 1.7.26 to 1.7.28

Release notes

Sourced from better-auth's releases.

v1.7.28

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 (#12853)
  • Fixed concurrent email OTP requests for the same address so both emails carry the same valid code on databases with a unique verification.identifier (#12893)
  • Fixed sending a new email OTP to replace the earlier code for that address so stale codes no longer cause refusals (#12893)
  • Fixed sending a new phone number OTP to replace the earlier code so a code sent during a check stays valid (#12893)
  • Fixed verifying an unregistered phone number without signUpOnVerification to return a 400 PHONE_NUMBER_NOT_EXIST error instead of a 500 (#12893)
  • 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 (#12858)
  • Fixed /revoke-session and /admin/revoke-user-session to stop reporting success when the session survives the revocation (#12858)
  • Fixed revoking all of a user's sessions to fail when secondaryStorage cannot clear the cached sessions, instead of reporting success (#12858)
  • Fixed getSession failing when a session cached in secondaryStorage is missing its user, by reading the user from the database (#12858)
  • Fixed revoked sessions staying valid in secondary storage when a database after hook throws during password reset or user deletion (#12806)
  • Fixed generateBackupCodes to read fresh user state so sessions cached before two-factor enrollment can generate codes and revoked sessions are rejected (#12907)
  • Fixed /update-user with the username plugin rejecting your own username as already taken when called with a bearer token (#12860)

For detailed changes, see CHANGELOG

@better-auth/oauth-provider

Bug Fixes

  • Fixed Client ID Metadata Document registration treating a failed insert as a registration race when wrapped error query parameters contain words like "duplicate", and now returning the original database error (#12853)
  • Fixed the OAuth provider WWW-Authenticate: Basic challenge to include the realm parameter required by RFC 7617 (#12789)
  • Fixed client IDs containing characters not allowed by RFC 6749 causing a 500 on PostgreSQL, now returning an invalid_client response (#12854)
  • Fixed requesting an OAuth device code without a resource failing with a 500 on Prisma with PostgreSQL, CockroachDB, or MongoDB (#12854)
  • Fixed oauthProviderClient requests without a body failing with a 415 error on pages with a signed OAuth query (#12863)
  • Fixed client assertion verification to use the most recently cached key set when overlapping JWKS refreshes finish out of order (#12850)

For detailed changes, see CHANGELOG

@better-auth/core

Bug Fixes

  • 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 (#12858)
  • Fixed revoking all of a user's sessions to fail when secondaryStorage cannot clear the cached sessions, instead of reporting success (#12858)
  • Fixed the Drizzle schema check being dropped when a project resolves two copies of @better-auth/core (#12905)
  • Fixed after-commit hooks queued with onError not running when an earlier queued hook throws (#12806)
  • Fixed a timed-out JWKS refresh blocking a refresh against a newer cached key set (#12850)

For detailed changes, see CHANGELOG

auth

Bug Fixes

  • Improved auth info to redact more secret variants, including snake_case, kebab-case, uppercase, plural names, private key passphrases, and nested values (#12896)

... (truncated)

Changelog

Sourced from better-auth's changelog.

1.7.28

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]:

    • @​better-auth/core@​1.7.28
    • @​better-auth/drizzle-adapter@​1.7.28
    • @​better-auth/kysely-adapter@​1.7.28
    • @​better-auth/memory-adapter@​1.7.28
    • @​better-auth/mongo-adapter@​1.7.28
    • @​better-auth/prisma-adapter@​1.7.28
    • @​better-auth/telemetry@​1.7.28

1.7.27

Patch Changes

  • #12809 1ab8e21 Thanks @​bytaesu! - Validate the request origin on /sign-in/anonymous, the same way the other sign-in endpoints do. A browser request from an origin outside trustedOrigins now gets a 403.

  • #12805 c6fd56d Thanks @​bytaesu! - Fix POST requests sent without a body, such as /sign-out or /revoke-sessions, failing with 415 on Deno, Next.js, Nuxt and other servers that pass an empty stream as the request body.

  • #12655 00f5017 Thanks @​gustavovalverde! - Tokens signed without a pinned algorithm, such as ID tokens and session JWTs, now prefer a key for jwks.keyPairConfig.alg. Before, if the first signature on an empty key set pinned an algorithm listed in jwks.keyPairConfigs, later unpinned tokens reused that key instead of creating one for the primary algorithm. An existing key whose algorithm is not listed in jwks.keyPairConfigs is still reused.

    A deployment already in the affected state, with no key for jwks.keyPairConfig.alg and a newest key for another jwks.keyPairConfigs algorithm, creates a key for jwks.keyPairConfig.alg on its next unpinned signature. This includes a deployment whose old primary algorithm moved into jwks.keyPairConfigs. A deployment that already has a key for jwks.keyPairConfig.alg keeps its current alg and kid. ID tokens, /token JWTs, and cookie-cache JWTs of an affected deployment then change alg and kid. Earlier tokens keep verifying by kid, but verifiers that hard-code the old algorithm, or never refetch the JWKS for an unknown kid, must adapt. A custom adapter.getJwks keyring is unchanged: unpinned tokens keep using its newest key, and no key is created for it.

  • #12810 d0a8cab Thanks @​bytaesu! - Fix the phone number plugin answering /update-user with a 500 when the request has no body. It now gets the same 400 as without the plugin.

... (truncated)

Commits
  • c70565a chore: release v1.7.28 (#12856)
  • d079059 fix(two-factor): read fresh user state when generating backup codes (#12907)
  • a3a9d2d fix: keep one OTP code per identifier in email OTP and phone number (#12893)
  • 7e229f0 fix: report session revocation and user deletion only when they take effect (...
  • 3011e5c fix(username): check update-user usernames against the endpoint session (#12860)
  • 47a77c0 fix(db): revoke cached sessions when a database after hook throws (#12806)
  • 2ba7622 fix: detect unique violations wrapped in an error cause (#12853)
  • 9faf6f6 chore: release v1.7.27 (#12811)
  • 00f5017 fix(jwt): keep unpinned tokens on the primary signing algorithm (#12655)
  • ac7c317 fix(test): run every test instance cleanup when one fails (#12553)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 22, 2026
@dependabot dependabot Bot changed the title chore(deps): bump the better-auth group with 2 updates chore(deps): bump the better-auth group across 1 directory with 2 updates Nov 25, 2026
@dependabot
dependabot Bot force-pushed the dependabot/bun/better-auth-dc2b93f667 branch from c1b25a0 to ff7c1cc Compare November 25, 2026 15:07
…ates

Bumps the better-auth group with 2 updates in the / directory: [@better-auth/drizzle-adapter](https://github.com/better-auth/better-auth/tree/HEAD/packages/drizzle-adapter) and [better-auth](https://github.com/better-auth/better-auth/tree/HEAD/packages/better-auth).


Updates `@better-auth/drizzle-adapter` from 1.7.26 to 1.7.28
- [Release notes](https://github.com/better-auth/better-auth/releases)
- [Changelog](https://github.com/better-auth/better-auth/blob/main/packages/drizzle-adapter/CHANGELOG.md)
- [Commits](https://github.com/better-auth/better-auth/commits/v1.7.28/packages/drizzle-adapter)

Updates `better-auth` from 1.7.26 to 1.7.28
- [Release notes](https://github.com/better-auth/better-auth/releases)
- [Changelog](https://github.com/better-auth/better-auth/blob/main/packages/better-auth/CHANGELOG.md)
- [Commits](https://github.com/better-auth/better-auth/commits/v1.7.28/packages/better-auth)

---
updated-dependencies:
- dependency-name: "@better-auth/drizzle-adapter"
  dependency-version: 1.7.26
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: better-auth
- dependency-name: better-auth
  dependency-version: 1.7.26
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: better-auth
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/bun/better-auth-dc2b93f667 branch from ff7c1cc to 0d5dbb6 Compare November 29, 2026 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants