Update dependency better-auth to v1.7.29 #30

Open
renovate[bot] wants to merge 1 commit from renovate/better-auth-1.x into main
renovate[bot] commented 2026-10-25 17:49:08 +00:00 (Migrated from github.com)

This PR contains the following updates:

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

Release Notes

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

v1.7.29

Compare Source

Patch Changes
  • #​12959 017a985 Thanks @​bytaesu! - Sign-up no longer fails, or stores a wrong value, when the request includes an input: false field whose defaultValue is a function.

  • #​12962 59da7fb Thanks @​bytaesu! - oneTap({ disableSignUp: true }) was ignored and /one-tap/callback still created new users. It now closes sign-up, and disableSignup stays as a deprecated alias.

  • #​12952 b87f41f Thanks @​bytaesu! - Organization dynamic role names are now trimmed when created or renamed, and names that are empty or contain a comma are rejected with INVALID_ROLE_NAME.

  • #​12956 61bfa16 Thanks @​gustavovalverde! - Email OTP and phone number codes resent while a wrong guess was being checked are no longer replaced by the old code when verification lives only in secondary storage.

  • #​12975 fcd3cbf Thanks @​gustavovalverde! - With resendStrategy: "reuse", an email OTP resend no longer repeats a code that was used or removed before the resend could extend its expiry. It sends a new code instead.

  • #​12958 bde96d1 Thanks @​gustavovalverde! - Email OTP and phone number OTP no longer send a code when a verification.create.before database hook returns false. Before, the code was sent even though it was never stored, so every attempt to use it failed with INVALID_OTP.

    • Sign-in codes, phone verification codes, and the server-only createVerificationOTP now fail with FAILED_TO_CREATE_VERIFICATION (HTTP 500).
    • Endpoints whose reply hides whether an account exists send nothing and return their usual reply. This covers password reset, email verification, change email, and sign-in codes when disableSignUp is set.
    • With sendVerificationOnSignUp, sign-up still succeeds without sending a code, and the error is logged. The user can request a new code later.
  • #​12975 fcd3cbf Thanks @​gustavovalverde! - Email OTP and phone number OTP no longer send a code when a verification.update.before database hook blocks it from replacing an earlier code. Before, a send that overlapped an earlier one could deliver a code that was never stored, so it always failed with INVALID_OTP. The send now fails with FAILED_TO_CREATE_VERIFICATION, or returns the usual reply on endpoints that hide whether an account exists.

  • #​12969 a55ade9 Thanks @​gustavovalverde! - When secondary storage fails, Better Auth logs and rethrows the error without the keys and values it was called with, so session tokens and cached sessions no longer reach application logs. The error keeps its name, message, and properties, such as the Redis command name, except where they contain one of those keys or values.

  • #​12956 61bfa16 Thanks @​gustavovalverde! - Two-factor OTP codes resent while a wrong guess was being checked are no longer rejected in favor of the old code.

  • #​12955 6b883ac Thanks @​bytaesu! - Two-factor enable, disable and enrollment now keep the original sign-in time when they replace the session, even after a password check, so the replacement is only as fresh as the session it replaces for session.freshAge.

  • #​12975 fcd3cbf Thanks @​gustavovalverde! - update.after database hooks no longer run when an update matches no record. Before, they ran with null, although their type promises the updated record, so hooks that read a field, such as the Stripe plugin's user hook, could throw.

  • #​12975 fcd3cbf Thanks @​gustavovalverde! - verification.update database hooks now run when verification values are kept in secondary storage, as verification.create hooks already did. With verification.storeInDatabase, secondary storage now changes only after the database update succeeds, so an update that a hook blocks or that finds no row leaves both stores with the same value.

  • #​12958 bde96d1 Thanks @​gustavovalverde! - Magic link, password reset, account deletion, one-time token, SIWE nonce, two-factor OTP, and two-factor sign-in no longer hand out a link, code, token, or challenge when a verification.create.before database hook returns false. Before, they sent something that could never be verified. Most of these endpoints now fail with FAILED_TO_CREATE_VERIFICATION (HTTP 500). Password reset sends no email and returns its usual reply, so it still does not reveal whether the account exists. Sign-in still succeeds when the hook vetoes an optional record: a trusted device is not trusted, and the set-ott header is left out.

  • Updated dependencies [55513e8, 55513e8, 23adcb1, bde96d1, a55ade9, fcd3cbf]:

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

v1.7.27

Compare Source

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.

  • #​12553 ac7c317 Thanks @​gustavovalverde! - getTestInstance from better-auth/test now runs every instance cleanup when one of them fails (several failures surface as an AggregateError), so later instances no longer leave their database or connection open.

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

  • Updated dependencies [5956cb7, 559c837]:

v1.7.26

Compare Source

Patch Changes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • 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.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [better-auth](https://better-auth.com) ([source](https://redirect.github.com/better-auth/better-auth/tree/HEAD/packages/better-auth)) | [`1.7.25` → `1.7.29`](https://renovatebot.com/diffs/npm/better-auth/1.7.25/1.7.29) | ![age](https://developer.mend.io/api/mc/badges/age/npm/better-auth/1.7.29?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/better-auth/1.7.29?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/better-auth/1.7.25/1.7.29?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/better-auth/1.7.25/1.7.29?slim=true) | --- ### Release Notes <details> <summary>better-auth/better-auth (better-auth)</summary> ### [`v1.7.29`](https://redirect.github.com/better-auth/better-auth/blob/HEAD/packages/better-auth/CHANGELOG.md#1729) [Compare Source](https://redirect.github.com/better-auth/better-auth/compare/v1.7.28...v1.7.29) ##### Patch Changes - [#&#8203;12959](https://redirect.github.com/better-auth/better-auth/pull/12959) [`017a985`](https://redirect.github.com/better-auth/better-auth/commit/017a985eea43bb3294661d70eaa5750eabfe9c4c) Thanks [@&#8203;bytaesu](https://redirect.github.com/bytaesu)! - Sign-up no longer fails, or stores a wrong value, when the request includes an `input: false` field whose `defaultValue` is a function. - [#&#8203;12962](https://redirect.github.com/better-auth/better-auth/pull/12962) [`59da7fb`](https://redirect.github.com/better-auth/better-auth/commit/59da7fbdcf522be816254e006237f2eb1f736bc6) Thanks [@&#8203;bytaesu](https://redirect.github.com/bytaesu)! - `oneTap({ disableSignUp: true })` was ignored and `/one-tap/callback` still created new users. It now closes sign-up, and `disableSignup` stays as a deprecated alias. - [#&#8203;12952](https://redirect.github.com/better-auth/better-auth/pull/12952) [`b87f41f`](https://redirect.github.com/better-auth/better-auth/commit/b87f41f1ae8007bc94c71cd7488ea5a3df3d9f0f) Thanks [@&#8203;bytaesu](https://redirect.github.com/bytaesu)! - Organization dynamic role names are now trimmed when created or renamed, and names that are empty or contain a comma are rejected with `INVALID_ROLE_NAME`. - [#&#8203;12956](https://redirect.github.com/better-auth/better-auth/pull/12956) [`61bfa16`](https://redirect.github.com/better-auth/better-auth/commit/61bfa16c5a5af3a444e33c61dcc280c99a30b723) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - Email OTP and phone number codes resent while a wrong guess was being checked are no longer replaced by the old code when verification lives only in secondary storage. - [#&#8203;12975](https://redirect.github.com/better-auth/better-auth/pull/12975) [`fcd3cbf`](https://redirect.github.com/better-auth/better-auth/commit/fcd3cbf4a71f8d19b295383b10a44f829e3e80c5) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - With `resendStrategy: "reuse"`, an email OTP resend no longer repeats a code that was used or removed before the resend could extend its expiry. It sends a new code instead. - [#&#8203;12958](https://redirect.github.com/better-auth/better-auth/pull/12958) [`bde96d1`](https://redirect.github.com/better-auth/better-auth/commit/bde96d18d5f64b956d190e5cf092db50e862781a) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - Email OTP and phone number OTP no longer send a code when a `verification.create.before` database hook returns `false`. Before, the code was sent even though it was never stored, so every attempt to use it failed with `INVALID_OTP`. - Sign-in codes, phone verification codes, and the server-only `createVerificationOTP` now fail with `FAILED_TO_CREATE_VERIFICATION` (HTTP 500). - Endpoints whose reply hides whether an account exists send nothing and return their usual reply. This covers password reset, email verification, change email, and sign-in codes when `disableSignUp` is set. - With `sendVerificationOnSignUp`, sign-up still succeeds without sending a code, and the error is logged. The user can request a new code later. - [#&#8203;12975](https://redirect.github.com/better-auth/better-auth/pull/12975) [`fcd3cbf`](https://redirect.github.com/better-auth/better-auth/commit/fcd3cbf4a71f8d19b295383b10a44f829e3e80c5) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - Email OTP and phone number OTP no longer send a code when a `verification.update.before` database hook blocks it from replacing an earlier code. Before, a send that overlapped an earlier one could deliver a code that was never stored, so it always failed with `INVALID_OTP`. The send now fails with `FAILED_TO_CREATE_VERIFICATION`, or returns the usual reply on endpoints that hide whether an account exists. - [#&#8203;12969](https://redirect.github.com/better-auth/better-auth/pull/12969) [`a55ade9`](https://redirect.github.com/better-auth/better-auth/commit/a55ade9c4f3737a367f7cbff2dbb5f8b1e7494d1) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - When secondary storage fails, Better Auth logs and rethrows the error without the keys and values it was called with, so session tokens and cached sessions no longer reach application logs. The error keeps its name, message, and properties, such as the Redis command name, except where they contain one of those keys or values. - [#&#8203;12956](https://redirect.github.com/better-auth/better-auth/pull/12956) [`61bfa16`](https://redirect.github.com/better-auth/better-auth/commit/61bfa16c5a5af3a444e33c61dcc280c99a30b723) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - Two-factor OTP codes resent while a wrong guess was being checked are no longer rejected in favor of the old code. - [#&#8203;12955](https://redirect.github.com/better-auth/better-auth/pull/12955) [`6b883ac`](https://redirect.github.com/better-auth/better-auth/commit/6b883aca559598c756a0999523a508be20ab281a) Thanks [@&#8203;bytaesu](https://redirect.github.com/bytaesu)! - Two-factor enable, disable and enrollment now keep the original sign-in time when they replace the session, even after a password check, so the replacement is only as fresh as the session it replaces for `session.freshAge`. - [#&#8203;12975](https://redirect.github.com/better-auth/better-auth/pull/12975) [`fcd3cbf`](https://redirect.github.com/better-auth/better-auth/commit/fcd3cbf4a71f8d19b295383b10a44f829e3e80c5) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - `update.after` database hooks no longer run when an update matches no record. Before, they ran with `null`, although their type promises the updated record, so hooks that read a field, such as the Stripe plugin's user hook, could throw. - [#&#8203;12975](https://redirect.github.com/better-auth/better-auth/pull/12975) [`fcd3cbf`](https://redirect.github.com/better-auth/better-auth/commit/fcd3cbf4a71f8d19b295383b10a44f829e3e80c5) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - `verification.update` database hooks now run when verification values are kept in secondary storage, as `verification.create` hooks already did. With `verification.storeInDatabase`, secondary storage now changes only after the database update succeeds, so an update that a hook blocks or that finds no row leaves both stores with the same value. - [#&#8203;12958](https://redirect.github.com/better-auth/better-auth/pull/12958) [`bde96d1`](https://redirect.github.com/better-auth/better-auth/commit/bde96d18d5f64b956d190e5cf092db50e862781a) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - Magic link, password reset, account deletion, one-time token, SIWE nonce, two-factor OTP, and two-factor sign-in no longer hand out a link, code, token, or challenge when a `verification.create.before` database hook returns `false`. Before, they sent something that could never be verified. Most of these endpoints now fail with `FAILED_TO_CREATE_VERIFICATION` (HTTP 500). Password reset sends no email and returns its usual reply, so it still does not reveal whether the account exists. Sign-in still succeeds when the hook vetoes an optional record: a trusted device is not trusted, and the `set-ott` header is left out. - Updated dependencies \[[`55513e8`](https://redirect.github.com/better-auth/better-auth/commit/55513e8533862f3f50efafc626d61ec927ae1728), [`55513e8`](https://redirect.github.com/better-auth/better-auth/commit/55513e8533862f3f50efafc626d61ec927ae1728), [`23adcb1`](https://redirect.github.com/better-auth/better-auth/commit/23adcb11d77b085b94c58cda78766ffda278d36d), [`bde96d1`](https://redirect.github.com/better-auth/better-auth/commit/bde96d18d5f64b956d190e5cf092db50e862781a), [`a55ade9`](https://redirect.github.com/better-auth/better-auth/commit/a55ade9c4f3737a367f7cbff2dbb5f8b1e7494d1), [`fcd3cbf`](https://redirect.github.com/better-auth/better-auth/commit/fcd3cbf4a71f8d19b295383b10a44f829e3e80c5)]: - [@&#8203;better-auth/core](https://redirect.github.com/better-auth/core)@1.7.29 - [@&#8203;better-auth/drizzle-adapter](https://redirect.github.com/better-auth/drizzle-adapter)@1.7.29 - [@&#8203;better-auth/kysely-adapter](https://redirect.github.com/better-auth/kysely-adapter)@1.7.29 - [@&#8203;better-auth/memory-adapter](https://redirect.github.com/better-auth/memory-adapter)@1.7.29 - [@&#8203;better-auth/mongo-adapter](https://redirect.github.com/better-auth/mongo-adapter)@1.7.29 - [@&#8203;better-auth/prisma-adapter](https://redirect.github.com/better-auth/prisma-adapter)@1.7.29 - [@&#8203;better-auth/telemetry](https://redirect.github.com/better-auth/telemetry)@1.7.29 ### [`v1.7.28`](https://redirect.github.com/better-auth/better-auth/blob/HEAD/packages/better-auth/CHANGELOG.md#1728) [Compare Source](https://redirect.github.com/better-auth/better-auth/compare/v1.7.27...v1.7.28) ##### Patch Changes - [#&#8203;12806](https://redirect.github.com/better-auth/better-auth/pull/12806) [`47a77c0`](https://redirect.github.com/better-auth/better-auth/commit/47a77c0fd36b89db20019ecb60223471e6b6f794) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12858](https://redirect.github.com/better-auth/better-auth/pull/12858) [`7e229f0`](https://redirect.github.com/better-auth/better-auth/commit/7e229f009731969ed183860feddcd58e62b70ad7) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12853](https://redirect.github.com/better-auth/better-auth/pull/12853) [`2ba7622`](https://redirect.github.com/better-auth/better-auth/commit/2ba762276c39db0ed5e5de3e8180fd3f85039921) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12893](https://redirect.github.com/better-auth/better-auth/pull/12893) [`a3a9d2d`](https://redirect.github.com/better-auth/better-auth/commit/a3a9d2d53af69725a61c441a4b660520e1a3aa44) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12893](https://redirect.github.com/better-auth/better-auth/pull/12893) [`a3a9d2d`](https://redirect.github.com/better-auth/better-auth/commit/a3a9d2d53af69725a61c441a4b660520e1a3aa44) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12893](https://redirect.github.com/better-auth/better-auth/pull/12893) [`a3a9d2d`](https://redirect.github.com/better-auth/better-auth/commit/a3a9d2d53af69725a61c441a4b660520e1a3aa44) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12893](https://redirect.github.com/better-auth/better-auth/pull/12893) [`a3a9d2d`](https://redirect.github.com/better-auth/better-auth/commit/a3a9d2d53af69725a61c441a4b660520e1a3aa44) Thanks [@&#8203;bytaesu](https://redirect.github.com/bytaesu)! - Verifying a phone number that no user has, without `signUpOnVerification`, now returns a 400 `PHONE_NUMBER_NOT_EXIST` error instead of a 500. - [#&#8203;12858](https://redirect.github.com/better-auth/better-auth/pull/12858) [`7e229f0`](https://redirect.github.com/better-auth/better-auth/commit/7e229f009731969ed183860feddcd58e62b70ad7) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12858](https://redirect.github.com/better-auth/better-auth/pull/12858) [`7e229f0`](https://redirect.github.com/better-auth/better-auth/commit/7e229f009731969ed183860feddcd58e62b70ad7) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12858](https://redirect.github.com/better-auth/better-auth/pull/12858) [`7e229f0`](https://redirect.github.com/better-auth/better-auth/commit/7e229f009731969ed183860feddcd58e62b70ad7) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12907](https://redirect.github.com/better-auth/better-auth/pull/12907) [`d079059`](https://redirect.github.com/better-auth/better-auth/commit/d079059d51db859d53b6606bbf4cf4ae9cec57dc) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/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. - [#&#8203;12860](https://redirect.github.com/better-auth/better-auth/pull/12860) [`3011e5c`](https://redirect.github.com/better-auth/better-auth/commit/3011e5ccb6cf3d27f37f8b5bf6bf5b9891a2367a) Thanks [@&#8203;bytaesu](https://redirect.github.com/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`](https://redirect.github.com/better-auth/better-auth/commit/47a77c0fd36b89db20019ecb60223471e6b6f794), [`7e229f0`](https://redirect.github.com/better-auth/better-auth/commit/7e229f009731969ed183860feddcd58e62b70ad7), [`35df753`](https://redirect.github.com/better-auth/better-auth/commit/35df7535de4064fa7b5a116eacd08aa97a41fb28), [`ddec4d7`](https://redirect.github.com/better-auth/better-auth/commit/ddec4d7c4630681eb18fec2284fd80ea02f50291), [`7e229f0`](https://redirect.github.com/better-auth/better-auth/commit/7e229f009731969ed183860feddcd58e62b70ad7), [`a879d3d`](https://redirect.github.com/better-auth/better-auth/commit/a879d3daa2e778d8ce4b13f4028c4519d017fa1b)]: - [@&#8203;better-auth/core](https://redirect.github.com/better-auth/core)@1.7.28 - [@&#8203;better-auth/drizzle-adapter](https://redirect.github.com/better-auth/drizzle-adapter)@1.7.28 - [@&#8203;better-auth/kysely-adapter](https://redirect.github.com/better-auth/kysely-adapter)@1.7.28 - [@&#8203;better-auth/memory-adapter](https://redirect.github.com/better-auth/memory-adapter)@1.7.28 - [@&#8203;better-auth/mongo-adapter](https://redirect.github.com/better-auth/mongo-adapter)@1.7.28 - [@&#8203;better-auth/prisma-adapter](https://redirect.github.com/better-auth/prisma-adapter)@1.7.28 - [@&#8203;better-auth/telemetry](https://redirect.github.com/better-auth/telemetry)@1.7.28 ### [`v1.7.27`](https://redirect.github.com/better-auth/better-auth/blob/HEAD/packages/better-auth/CHANGELOG.md#1727) [Compare Source](https://redirect.github.com/better-auth/better-auth/compare/v1.7.26...v1.7.27) ##### Patch Changes - [#&#8203;12809](https://redirect.github.com/better-auth/better-auth/pull/12809) [`1ab8e21`](https://redirect.github.com/better-auth/better-auth/commit/1ab8e21f47f5f96913dc532c08898291092038f6) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12805](https://redirect.github.com/better-auth/better-auth/pull/12805) [`c6fd56d`](https://redirect.github.com/better-auth/better-auth/commit/c6fd56d0e38d9122a65a276148c40b00cfbc845e) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12655](https://redirect.github.com/better-auth/better-auth/pull/12655) [`00f5017`](https://redirect.github.com/better-auth/better-auth/commit/00f50170626a6ab501120badade36dbcf251520a) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/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. - [#&#8203;12810](https://redirect.github.com/better-auth/better-auth/pull/12810) [`d0a8cab`](https://redirect.github.com/better-auth/better-auth/commit/d0a8cabc1a46d0ac6ec0a59d870f1ece1bd1d39f) Thanks [@&#8203;bytaesu](https://redirect.github.com/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. - [#&#8203;12553](https://redirect.github.com/better-auth/better-auth/pull/12553) [`ac7c317`](https://redirect.github.com/better-auth/better-auth/commit/ac7c3175417601778aa2d4786babe8af6d5673fa) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - `getTestInstance` from `better-auth/test` now runs every instance cleanup when one of them fails (several failures surface as an `AggregateError`), so later instances no longer leave their database or connection open. - [#&#8203;12810](https://redirect.github.com/better-auth/better-auth/pull/12810) [`d0a8cab`](https://redirect.github.com/better-auth/better-auth/commit/d0a8cabc1a46d0ac6ec0a59d870f1ece1bd1d39f) Thanks [@&#8203;bytaesu](https://redirect.github.com/bytaesu)! - Fix the username plugin answering `/sign-up/email` and `/update-user` with a 500 when the request has no body. It now gets the same 400 as without the plugin. - Updated dependencies \[[`5956cb7`](https://redirect.github.com/better-auth/better-auth/commit/5956cb7632eaf104eff9b281dcd6e058609b59ca), [`559c837`](https://redirect.github.com/better-auth/better-auth/commit/559c837ffad761dd085ef732e886a2a4d72150a3)]: - [@&#8203;better-auth/core](https://redirect.github.com/better-auth/core)@1.7.27 - [@&#8203;better-auth/drizzle-adapter](https://redirect.github.com/better-auth/drizzle-adapter)@1.7.27 - [@&#8203;better-auth/kysely-adapter](https://redirect.github.com/better-auth/kysely-adapter)@1.7.27 - [@&#8203;better-auth/memory-adapter](https://redirect.github.com/better-auth/memory-adapter)@1.7.27 - [@&#8203;better-auth/mongo-adapter](https://redirect.github.com/better-auth/mongo-adapter)@1.7.27 - [@&#8203;better-auth/prisma-adapter](https://redirect.github.com/better-auth/prisma-adapter)@1.7.27 - [@&#8203;better-auth/telemetry](https://redirect.github.com/better-auth/telemetry)@1.7.27 ### [`v1.7.26`](https://redirect.github.com/better-auth/better-auth/blob/HEAD/packages/better-auth/CHANGELOG.md#1726) [Compare Source](https://redirect.github.com/better-auth/better-auth/compare/v1.7.25...v1.7.26) ##### Patch Changes - [#&#8203;12626](https://redirect.github.com/better-auth/better-auth/pull/12626) [`d34e6b1`](https://redirect.github.com/better-auth/better-auth/commit/d34e6b130e45ed1b99ad4d49573ca875ab7f2dbf) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - A verification lookup that finds an expired value now deletes it, so later lookups no longer return it. Since 1.7.24, an expired value could be returned to repeated lookups for up to a minute. - [#&#8203;12734](https://redirect.github.com/better-auth/better-auth/pull/12734) [`ae6584c`](https://redirect.github.com/better-auth/better-auth/commit/ae6584c7da944b1bd2f103b322d82784a1f7117c) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - Social providers accept a `getAccountFields` option that stores your own values on the provider account. Return values for the fields you declare in `account.additionalFields`, and Better Auth saves them when the account is created, linked, or updated at sign-in. The option does nothing when you leave it unset, and it cannot replace the provider ID, account ID, or tokens. - [#&#8203;12626](https://redirect.github.com/better-auth/better-auth/pull/12626) [`d34e6b1`](https://redirect.github.com/better-auth/better-auth/commit/d34e6b130e45ed1b99ad4d49573ca875ab7f2dbf) Thanks [@&#8203;gustavovalverde](https://redirect.github.com/gustavovalverde)! - Two-factor sign-in now rejects an expired challenge before it sends an OTP or counts a failed attempt. - Updated dependencies \[[`ddcb9a2`](https://redirect.github.com/better-auth/better-auth/commit/ddcb9a25e32ced7ba7528d6a2ca04e9705c51a61), [`836b13e`](https://redirect.github.com/better-auth/better-auth/commit/836b13e6d5bebf6b1fec37eab69714c0009943bb), [`54c1b69`](https://redirect.github.com/better-auth/better-auth/commit/54c1b693c64f85ba602584d2f6524fca961fb4e7), [`cbbfab2`](https://redirect.github.com/better-auth/better-auth/commit/cbbfab2ad3d331fbdc0ce82bf3ef57b691820f6d), [`cbbfab2`](https://redirect.github.com/better-auth/better-auth/commit/cbbfab2ad3d331fbdc0ce82bf3ef57b691820f6d), [`cbbfab2`](https://redirect.github.com/better-auth/better-auth/commit/cbbfab2ad3d331fbdc0ce82bf3ef57b691820f6d), [`ae6584c`](https://redirect.github.com/better-auth/better-auth/commit/ae6584c7da944b1bd2f103b322d82784a1f7117c), [`de4ccfd`](https://redirect.github.com/better-auth/better-auth/commit/de4ccfd082c9cd419fd8434444c7e3500d49c503)]: - [@&#8203;better-auth/core](https://redirect.github.com/better-auth/core)@1.7.26 - [@&#8203;better-auth/drizzle-adapter](https://redirect.github.com/better-auth/drizzle-adapter)@1.7.26 - [@&#8203;better-auth/kysely-adapter](https://redirect.github.com/better-auth/kysely-adapter)@1.7.26 - [@&#8203;better-auth/memory-adapter](https://redirect.github.com/better-auth/memory-adapter)@1.7.26 - [@&#8203;better-auth/mongo-adapter](https://redirect.github.com/better-auth/mongo-adapter)@1.7.26 - [@&#8203;better-auth/prisma-adapter](https://redirect.github.com/better-auth/prisma-adapter)@1.7.26 - [@&#8203;better-auth/telemetry](https://redirect.github.com/better-auth/telemetry)@1.7.26 </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/chris-kreidl/trainer). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODAuMCIsInVwZGF0ZWRJblZlciI6IjQ0LjI2Mi4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
coderabbitai[bot] commented 2026-10-25 17:49:15 +00:00 (Migrated from github.com)

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Free
  • Run ID: b277da7a-c1b3-401c-810c-419f72ec00ad

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
<!-- coderabbit-ai-generated:v1 --> <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- This is an auto-generated comment: skip review by coderabbit.ai --> > [!IMPORTANT] > ## Review skipped > > Bot user detected. > > To trigger a single review, invoke the `@coderabbitai review` command. > > <details> > <summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary> > <dl> > <dd> > <br> > > - **Source mode**: Auto > - **Repository**: Unavailable > - **Branch**: Unavailable > - **File**: No configuration file from this repository applied > - **Commit**: Unavailable > - **Layers**: Organization UI > - **Review profile**: ASSERTIVE > - **Plan**: Free > - **Run ID**: `b277da7a-c1b3-401c-810c-419f72ec00ad` > > </dd> > </dl> > </details> > > You can disable this status message by setting the `reviews.review_status` to `false` in the CodeRabbit configuration file. > > Use the checkbox below for a quick retry: > - [ ] <!-- {"checkboxId":"e9bb8d72-00e8-4f67-9cb2-caf3b22574fe"} --> Trigger review <!-- end of auto-generated comment: skip review by coderabbit.ai --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts <!-- autopilot:end -->
socket-security[bot] commented 2026-10-25 17:49:36 +00:00 (Migrated from github.com)

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedbetter-auth@​1.7.25 ⏵ 1.7.2972 -251008496100

View full report

**Review the following changes in direct dependencies.** Learn more about [Socket for GitHub](https://socket.dev?utm_medium=gh). <table> <thead> <tr> <th>Diff</th> <th width="200px">Package</th> <th align="left" width="100px">Supply Chain<br/>Security</th> <th align="left" width="100px">Vulnerability</th> <th align="left" width="100px">Quality</th> <th align="left" width="100px">Maintenance</th> <th align="left" width="100px">License</th> </tr> </thead> <tbody> <tr><td align="center"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/8475af53-8d0c-466f-92cf-0ec82d228fcc?tab=dependencies&dependency_item_key=101982506110"><img src="https://github-app-statics.socket.dev/diff-updated.svg" title="Updated" alt="Updated" width="20" height="20"></a></td><td><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/8475af53-8d0c-466f-92cf-0ec82d228fcc?tab=dependencies&dependency_item_key=101982506110">better-auth@​1.7.25 ⏵ 1.7.29</a></td><td align="left"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/8475af53-8d0c-466f-92cf-0ec82d228fcc?tab=dependencies&dependency_item_key=101982506110"><img src="https://github-app-statics.socket.dev/score-72.svg" title="Supply Chain Security" width="40" height="40" alt="72"></a> <sup>-25</sup></td><td align="left"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/8475af53-8d0c-466f-92cf-0ec82d228fcc?tab=dependencies&dependency_item_key=101982506110"><img src="https://github-app-statics.socket.dev/score-100.svg" title="Vulnerability" width="40" height="40" alt="100"></a></td><td align="left"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/8475af53-8d0c-466f-92cf-0ec82d228fcc?tab=dependencies&dependency_item_key=101982506110"><img src="https://github-app-statics.socket.dev/score-84.svg" title="Quality" width="40" height="40" alt="84"></a></td><td align="left"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/8475af53-8d0c-466f-92cf-0ec82d228fcc?tab=dependencies&dependency_item_key=101982506110"><img src="https://github-app-statics.socket.dev/score-96.svg" title="Maintenance" width="40" height="40" alt="96"></a></td><td align="left"><a href="https://socket.dev/dashboard/org/chris-kreidl/diff-scan/8475af53-8d0c-466f-92cf-0ec82d228fcc?tab=dependencies&dependency_item_key=101982506110"><img src="https://github-app-statics.socket.dev/score-100.svg" title="License" width="40" height="40" alt="100"></a></td></tr> </tbody> </table> [View full report](https://socket.dev/dashboard/org/chris-kreidl/diff-scan/8475af53-8d0c-466f-92cf-0ec82d228fcc?tab=dependencies) <!-- overview-comment -->
vercel[bot] commented 2026-12-04 05:52:07 +00:00 (Migrated from github.com)

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
trainer Error Error Dec 4, 2026 5:52am UTC

Request Review

[vc]: #1Hn8dE1pO0ihm00BHFpcGrWw8NhYr/a6a1yXIPNisaU=:eyJpc01vbm9yZXBvIjp0cnVlLCJ0eXBlIjoiZ2l0aHViIiwicHJvamVjdHMiOlt7Im5hbWUiOiJ0cmFpbmVyIiwicHJvamVjdElkIjoicHJqX3JkNDRKRHhybEp0cjBSd2lXVFRyREMwU2tyR0wiLCJyb290RGlyZWN0b3J5IjpudWxsLCJpbnNwZWN0b3JVcmwiOiJodHRwczovL3ZlcmNlbC5jb20vY2hyaXNrcmVpZGxzLXByb2plY3RzL3RyYWluZXIvOUYxVWJNS3p1Z3RrZkZCUHBRVno5NkVXc1htWiIsInByZXZpZXdVcmwiOiIiLCJuZXh0Q29tbWl0U3RhdHVzIjoiRkFJTEVEIiwibGl2ZUZlZWRiYWNrIjp7InJlc29sdmVkIjowLCJ1bnJlc29sdmVkIjowLCJ0b3RhbCI6MCwibGluayI6IiJ9fV0sInJlcXVlc3RSZXZpZXdVcmwiOiJodHRwczovL3ZlcmNlbC5jb20vdmVyY2VsLWFnZW50L3JlcXVlc3QtcmV2aWV3P293bmVyPWNocmlzLWtyZWlkbCZyZXBvPXRyYWluZXImcHI9MzAifQ== The latest updates on your projects. Learn more about [Vercel for GitHub](https://vercel.link/github-learn-more). | Project | Deployment | Actions | Updated | | :--- | :----- | :------ | :------ | | <a href="https://vercel.com/chriskreidls-projects/trainer"><sup><img src="https://vercel.com/api/www/avatar?projectId=prj_rd44JDxrlJtr0RwiWTTrDC0SkrGL&teamId=team_tRaZIbYBlKD7c14W9RBhwAFZ&s=32" width="16" height="16" align="middle" alt="" /></sup></a> [trainer](https://vercel.com/chriskreidls-projects/trainer) | ![Error](https://vercel.com/static/status/error.svg) [Error](https://vercel.com/chriskreidls-projects/trainer/9F1UbMKzugtkfFBPpQVz96EWsXmZ) | | <relative-time datetime="2026-12-04T05:52:13.642Z">Dec 4, 2026 5:52am UTC</relative-time> | <a href="https://vercel.com/vercel-agent/request-review?owner=chris-kreidl&repo=trainer&pr=30" rel="noreferrer"><picture><source media="(prefers-color-scheme: dark)" srcset="https://agents-vade-review.vercel.sh/request-review-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://agents-vade-review.vercel.sh/request-review-light.svg"><img src="https://agents-vade-review.vercel.sh/request-review-light.svg" alt="Request Review"></picture></a>
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'renovate/better-auth-1.x:renovate/better-auth-1.x'
git switch 'renovate/better-auth-1.x'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'renovate/better-auth-1.x'
git switch 'renovate/better-auth-1.x'
git rebase 'main'
git switch 'main'
git merge --ff-only 'renovate/better-auth-1.x'
git switch 'renovate/better-auth-1.x'
git rebase 'main'
git switch 'main'
git merge --no-ff 'renovate/better-auth-1.x'
git switch 'main'
git merge --squash 'renovate/better-auth-1.x'
git switch 'main'
git merge --ff-only 'renovate/better-auth-1.x'
git switch 'main'
git merge 'renovate/better-auth-1.x'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ckreidl/trainer!30
No description provided.