[PR #4976] [MERGED] v1.3.24 #22591

Closed
opened 2026-04-15 21:09:25 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4976
Author: @himself65
Created: 9/30/2025
Status: Merged
Merged: 9/30/2025
Merged by: @himself65

Base: v1.3.x-latestHead: v1.3.x-staging


📝 Commits (10+)

📊 Changes

149 files changed (+6899 additions, -4300 deletions)

View changed files

📝 biome.json (+2 -1)
📝 demo/expo-example/components.json (+4 -4)
demo/expo-example/expo-env.d.ts (+3 -0)
📝 demo/expo-example/package.json (+2 -6)
📝 demo/nextjs/README.md (+2 -0)
📝 demo/nextjs/components/sign-in.tsx (+9 -8)
📝 demo/nextjs/components/ui/calendar.tsx (+0 -5)
📝 demo/nextjs/lib/auth.ts (+27 -26)
📝 docker-compose.yml (+60 -2)
📝 docs/app/blog/_components/support.tsx (+0 -2)
📝 docs/app/docs/layout.tsx (+7 -2)
docs/components/ai-chat-modal.tsx (+426 -0)
docs/components/floating-ai-search.tsx (+516 -0)
docs/components/markdown.tsx (+119 -0)
📝 docs/components/ui/calendar.tsx (+0 -9)
📝 docs/content/docs/adapters/mssql.mdx (+4 -0)
📝 docs/content/docs/adapters/mysql.mdx (+1 -0)
📝 docs/content/docs/concepts/client.mdx (+3 -3)
📝 docs/content/docs/examples/next-js.mdx (+5 -0)
📝 docs/content/docs/integrations/svelte-kit.mdx (+1 -1)

...and 80 more files

📄 Description

Summary by cubic

Refreshes cached sessions in secondary storage when a user is updated, so changes like emailVerified propagate to all active sessions. Also fixes DB schema handling for onDelete and updates SQLite timestamp generation to millisecond precision.

  • Bug Fixes

    • Refresh cached sessions on user update; emailVerified now syncs across all active sessions.
    • Preserve onDelete in schema references; SSO provider userId is nullable with ON DELETE SET NULL (provider not removed when the creator user is deleted).
    • Drizzle CLI (SQLite): switch to timestamp_ms and ms-precision defaults for createdAt/updatedAt/expiresAt.
    • Docs: fix SvelteKit session store example and update SAML SSO guide link.
  • Migration

    • Regenerate Drizzle schema for SQLite and run migrations to adopt timestamp_ms and the new default timestamp expression.
    • Update the ssoProvider table: make userId nullable and set the FK to ON DELETE SET NULL, then migrate.

🔄 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/4976 **Author:** [@himself65](https://github.com/himself65) **Created:** 9/30/2025 **Status:** ✅ Merged **Merged:** 9/30/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `v1.3.x-latest` ← **Head:** `v1.3.x-staging` --- ### 📝 Commits (10+) - [`94ad982`](https://github.com/better-auth/better-auth/commit/94ad9822bd2d7bf7bffcc18387a7da192de864f9) chore: typecheck using monorepo (#4920) - [`070ecce`](https://github.com/better-auth/better-auth/commit/070eccec5bce7f2dec4cc50e7198eab5217c98d3) refactor: move db schema to core (#4918) - [`bda3deb`](https://github.com/better-auth/better-auth/commit/bda3deb1d8838f8e441e2b10c94d3fee095a53cc) feat: waku integration guide (#3990) - [`eb09f11`](https://github.com/better-auth/better-auth/commit/eb09f11bcf428cb6a2149cd32d0dd2c03704d05a) refactor: move mockLogger into the specific test file (#4931) - [`a2871fd`](https://github.com/better-auth/better-auth/commit/a2871fdd419ccc3c2af88c25796bb66db1b63053) feat: add support for custom callback for authorization url (#4919) - [`08953b0`](https://github.com/better-auth/better-auth/commit/08953b08ac95cc8d21351823ee99bc86ab537928) perf: improve type `Auth` (#4930) - [`ee72376`](https://github.com/better-auth/better-auth/commit/ee72376fb5ac3b8bd52ac56daf602ecbdde94634) chore: update demo readme - [`250f476`](https://github.com/better-auth/better-auth/commit/250f476a760db9b7019e366236a51fa65ab3a3ea) chore: lint - [`3727d8e`](https://github.com/better-auth/better-auth/commit/3727d8ebdcba408d936be109555f1e24ce50bd5b) fix: refresh secondary storage sessions on user update (#4522) - [`e5b9e49`](https://github.com/better-auth/better-auth/commit/e5b9e4911b0c163d2a16be099254a454299794c9) chore: misc ### 📊 Changes **149 files changed** (+6899 additions, -4300 deletions) <details> <summary>View changed files</summary> 📝 `biome.json` (+2 -1) 📝 `demo/expo-example/components.json` (+4 -4) ➕ `demo/expo-example/expo-env.d.ts` (+3 -0) 📝 `demo/expo-example/package.json` (+2 -6) 📝 `demo/nextjs/README.md` (+2 -0) 📝 `demo/nextjs/components/sign-in.tsx` (+9 -8) 📝 `demo/nextjs/components/ui/calendar.tsx` (+0 -5) 📝 `demo/nextjs/lib/auth.ts` (+27 -26) 📝 `docker-compose.yml` (+60 -2) 📝 `docs/app/blog/_components/support.tsx` (+0 -2) 📝 `docs/app/docs/layout.tsx` (+7 -2) ➕ `docs/components/ai-chat-modal.tsx` (+426 -0) ➕ `docs/components/floating-ai-search.tsx` (+516 -0) ➕ `docs/components/markdown.tsx` (+119 -0) 📝 `docs/components/ui/calendar.tsx` (+0 -9) 📝 `docs/content/docs/adapters/mssql.mdx` (+4 -0) 📝 `docs/content/docs/adapters/mysql.mdx` (+1 -0) 📝 `docs/content/docs/concepts/client.mdx` (+3 -3) 📝 `docs/content/docs/examples/next-js.mdx` (+5 -0) 📝 `docs/content/docs/integrations/svelte-kit.mdx` (+1 -1) _...and 80 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Refreshes cached sessions in secondary storage when a user is updated, so changes like emailVerified propagate to all active sessions. Also fixes DB schema handling for onDelete and updates SQLite timestamp generation to millisecond precision. - **Bug Fixes** - Refresh cached sessions on user update; emailVerified now syncs across all active sessions. - Preserve onDelete in schema references; SSO provider userId is nullable with ON DELETE SET NULL (provider not removed when the creator user is deleted). - Drizzle CLI (SQLite): switch to timestamp_ms and ms-precision defaults for createdAt/updatedAt/expiresAt. - Docs: fix SvelteKit session store example and update SAML SSO guide link. - **Migration** - Regenerate Drizzle schema for SQLite and run migrations to adopt timestamp_ms and the new default timestamp expression. - Update the ssoProvider table: make userId nullable and set the FK to ON DELETE SET NULL, then migrate. <!-- 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 21:09:25 -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#22591