[PR #9173] [MERGED] chore: sync main to next #25386

Closed
opened 2026-04-15 22:51:49 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/9173
Author: @better-release[bot]
Created: 4/14/2026
Status: Merged
Merged: 4/15/2026
Merged by: @gustavovalverde

Base: nextHead: main


📝 Commits (8)

  • dd6528f docs(guides): move dynamic base url from concepts to guides and options (#9145)
  • acbd6ef fix: honor forceAllowId UUIDs on postgres adapters (#9068)
  • 7be52d9 docs: add docs email normalization on sentinel (#9188)
  • a0caa1f docs(device-authorization): fix approval page query param (#9197)
  • 9aed910 fix(two-factor): revert enforcement broadening from #9122 (#9205)
  • ba03fb5 chore(deps): bump electron and next devDependencies to patched versions (#9166)
  • 39d6af2 chore(adapters): require patched drizzle-orm and kysely peer versions (#9165)
  • 9ec849f chore: release v1.6.4 (#9175)

📊 Changes

53 files changed (+554 additions, -596 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+6 -6)
📝 docs/content/blogs/1-5.mdx (+1 -1)
docs/content/docs/concepts/dynamic-base-url.mdx (+0 -261)
docs/content/docs/guides/dynamic-base-url.mdx (+155 -0)
📝 docs/content/docs/infrastructure/plugins/sentinel.mdx (+21 -0)
📝 docs/content/docs/plugins/device-authorization.mdx (+1 -1)
📝 docs/content/docs/reference/options.mdx (+38 -1)
📝 e2e/adapter/test/adapter-factory/adapter-factory.test.ts (+35 -0)
📝 packages/api-key/CHANGELOG.md (+8 -0)
📝 packages/api-key/package.json (+1 -1)
📝 packages/better-auth/CHANGELOG.md (+25 -0)
📝 packages/better-auth/package.json (+3 -3)
📝 packages/better-auth/src/db/db.test.ts (+51 -0)
📝 packages/better-auth/src/plugins/two-factor/index.ts (+3 -8)
📝 packages/better-auth/src/plugins/two-factor/two-factor.test.ts (+20 -15)
📝 packages/cli/CHANGELOG.md (+9 -0)
📝 packages/cli/package.json (+1 -1)
📝 packages/core/CHANGELOG.md (+2 -0)
📝 packages/core/package.json (+1 -1)
📝 packages/core/src/db/adapter/get-id-field.ts (+2 -2)

...and 33 more files

📄 Description

Brings stable fixes from main into the next branch.

This PR must be merged by a maintainer using 'Create a merge commit' (not squash, not rebase). This preserves individual fix commits and their verified signatures.

If there are conflicts, resolve them by keeping next's versions for package.json files (next is always ahead of main in version numbers).


Summary by cubic

Syncs main into next with docs, bug fixes, and dependency hardening, and publishes the v1.6.4 patch release across packages.

  • Refactors

    • Moved Dynamic Base URL docs from Concepts to Guides and expanded the baseURL reference (dynamic config, protocol/fallback, auto-trustedOrigins, cross-subdomain cookies); updated sidebar link/icon and blog reference.
    • Added Sentinel emailNormalization docs with overview and example usage.
    • Tightened adapter peer ranges to patched versions: drizzle-orm^0.45.2, kysely^0.28.14; bumped devDependencies: next^16.2.3, electron^38.8.6; published v1.6.4 across packages.
  • Bug Fixes

    • In better-auth, honor forceAllowId for UUIDs on PostgreSQL adapters when advanced.database.generateId is "uuid".
    • Reverted 2FA enforcement broadening: challenge only on /sign-in/email, /sign-in/username, and /sign-in/phone-number; non-credential flows are not gated.
    • Updated Device Authorization docs to use the user_code query param on the approval page.

Written for commit 9ec849ff71. Summary will update on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/9173 **Author:** [@better-release[bot]](https://github.com/apps/better-release) **Created:** 4/14/2026 **Status:** ✅ Merged **Merged:** 4/15/2026 **Merged by:** [@gustavovalverde](https://github.com/gustavovalverde) **Base:** `next` ← **Head:** `main` --- ### 📝 Commits (8) - [`dd6528f`](https://github.com/better-auth/better-auth/commit/dd6528f45b5593f77ee3503abd760beb5605e651) docs(guides): move dynamic base url from concepts to guides and options (#9145) - [`acbd6ef`](https://github.com/better-auth/better-auth/commit/acbd6ef69f88ea54174446ac0465a426bad7ca09) fix: honor forceAllowId UUIDs on postgres adapters (#9068) - [`7be52d9`](https://github.com/better-auth/better-auth/commit/7be52d9403407378b9c2434d9f7419b51495b308) docs: add docs email normalization on sentinel (#9188) - [`a0caa1f`](https://github.com/better-auth/better-auth/commit/a0caa1f6f8b2b9028b2917c8515280426ed2dbe4) docs(device-authorization): fix approval page query param (#9197) - [`9aed910`](https://github.com/better-auth/better-auth/commit/9aed910499eb4cbc3dd0c395ff5534893daab7a4) fix(two-factor): revert enforcement broadening from #9122 (#9205) - [`ba03fb5`](https://github.com/better-auth/better-auth/commit/ba03fb59f4d1ce4309ddf5fa315d4b2d82951990) chore(deps): bump electron and next devDependencies to patched versions (#9166) - [`39d6af2`](https://github.com/better-auth/better-auth/commit/39d6af2a392dc41018a036d1d909dc48c09749c9) chore(adapters): require patched drizzle-orm and kysely peer versions (#9165) - [`9ec849f`](https://github.com/better-auth/better-auth/commit/9ec849ff7147f672a2759515e2aae8af7736962c) chore: release v1.6.4 (#9175) ### 📊 Changes **53 files changed** (+554 additions, -596 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+6 -6) 📝 `docs/content/blogs/1-5.mdx` (+1 -1) ➖ `docs/content/docs/concepts/dynamic-base-url.mdx` (+0 -261) ➕ `docs/content/docs/guides/dynamic-base-url.mdx` (+155 -0) 📝 `docs/content/docs/infrastructure/plugins/sentinel.mdx` (+21 -0) 📝 `docs/content/docs/plugins/device-authorization.mdx` (+1 -1) 📝 `docs/content/docs/reference/options.mdx` (+38 -1) 📝 `e2e/adapter/test/adapter-factory/adapter-factory.test.ts` (+35 -0) 📝 `packages/api-key/CHANGELOG.md` (+8 -0) 📝 `packages/api-key/package.json` (+1 -1) 📝 `packages/better-auth/CHANGELOG.md` (+25 -0) 📝 `packages/better-auth/package.json` (+3 -3) 📝 `packages/better-auth/src/db/db.test.ts` (+51 -0) 📝 `packages/better-auth/src/plugins/two-factor/index.ts` (+3 -8) 📝 `packages/better-auth/src/plugins/two-factor/two-factor.test.ts` (+20 -15) 📝 `packages/cli/CHANGELOG.md` (+9 -0) 📝 `packages/cli/package.json` (+1 -1) 📝 `packages/core/CHANGELOG.md` (+2 -0) 📝 `packages/core/package.json` (+1 -1) 📝 `packages/core/src/db/adapter/get-id-field.ts` (+2 -2) _...and 33 more files_ </details> ### 📄 Description Brings stable fixes from main into the next branch. **This PR must be merged by a maintainer using 'Create a merge commit'** (not squash, not rebase). This preserves individual fix commits and their verified signatures. If there are conflicts, resolve them by keeping next's versions for `package.json` files (next is always ahead of main in version numbers). <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Syncs main into next with docs, bug fixes, and dependency hardening, and publishes the v1.6.4 patch release across packages. - **Refactors** - Moved Dynamic Base URL docs from Concepts to Guides and expanded the `baseURL` reference (dynamic config, protocol/fallback, auto-`trustedOrigins`, cross-subdomain cookies); updated sidebar link/icon and blog reference. - Added Sentinel `emailNormalization` docs with overview and example usage. - Tightened adapter peer ranges to patched versions: `drizzle-orm` → `^0.45.2`, `kysely` → `^0.28.14`; bumped devDependencies: `next` → `^16.2.3`, `electron` → `^38.8.6`; published v1.6.4 across packages. - **Bug Fixes** - In `better-auth`, honor `forceAllowId` for UUIDs on PostgreSQL adapters when `advanced.database.generateId` is `"uuid"`. - Reverted 2FA enforcement broadening: challenge only on `/sign-in/email`, `/sign-in/username`, and `/sign-in/phone-number`; non-credential flows are not gated. - Updated Device Authorization docs to use the `user_code` query param on the approval page. <sup>Written for commit 9ec849ff7147f672a2759515e2aae8af7736962c. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:51:49 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#25386