[PR #5041] [MERGED] v1.3.25 #22633

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5041
Author: @himself65
Created: 10/2/2025
Status: Merged
Merged: 10/2/2025
Merged by: @himself65

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


📝 Commits (10+)

📊 Changes

96 files changed (+3297 additions, -1311 deletions)

View changed files

📝 .github/workflows/ci.yml (+1 -1)
📝 .github/workflows/e2e.yml (+2 -2)
📝 .github/workflows/preview.yml (+1 -1)
📝 docs/components/floating-ai-search.tsx (+168 -68)
📝 docs/components/search-dialog.tsx (+0 -11)
📝 docs/content/docs/concepts/plugins.mdx (+1 -0)
📝 docs/content/docs/integrations/nestjs.mdx (+20 -7)
📝 docs/content/docs/introduction.mdx (+31 -0)
📝 docs/content/docs/plugins/captcha.mdx (+4 -2)
📝 docs/content/docs/plugins/community-plugins.mdx (+2 -1)
📝 docs/content/docs/plugins/generic-oauth.mdx (+2 -0)
📝 docs/content/docs/plugins/last-login-method.mdx (+1 -1)
📝 docs/content/docs/plugins/oauth-proxy.mdx (+3 -1)
📝 docs/content/docs/reference/contributing.mdx (+22 -1)
📝 package.json (+1 -2)
📝 packages/better-auth/build.config.ts (+2 -0)
📝 packages/better-auth/package.json (+14 -1)
📝 packages/better-auth/src/adapters/adapter-factory/index.ts (+4 -2)
📝 packages/better-auth/src/adapters/adapter-factory/test/adapter-factory.test.ts (+67 -0)
📝 packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts (+10 -1)

...and 76 more files

📄 Description

Summary by cubic

Adds MCP CLI support and CaptchaFox CAPTCHA, and fixes several OAuth/OIDC/Stripe and adapter edge cases for a more reliable auth experience.

  • New Features

    • CLI: Added mcp command to auto-configure the Better Auth MCP server for Cursor, Claude Code, Open Code, or manual setup.
    • CAPTCHA: Added CaptchaFox provider.
    • OAuth: tokenUrlParams can be a function in Generic OAuth.
    • Clients: Added Lynx client exports.
    • Accounts: Support additional account fields in options and migrations.
    • Telemetry: Lazy-loaded telemetry creation for lower startup cost.
  • Bug Fixes

    • OAuth Proxy: Option to skip state cookie check during proxy callbacks; auto-skip when productionURL matches baseURL or x-skip-oauth-proxy header is set.
    • OIDC: Properly enforce consent requirements and handle consent flow without forcing prompt.
    • Stripe: Upgrade existing subscriptions instead of creating new ones; sync customer email on change; ensure getCustomerCreateParams is called with new signature.
    • Adapters: Preserve null for nullable foreign keys (including number IDs); use updated values in WHERE clause on update; correct foreign key DB types; MongoDB allows null references.
    • Rate Limiter: Apply TTL in secondary storage based on window.
    • Cookies: Don’t throw on oversized cookie cache; log and skip caching.
    • Networking: Correct IPv4/IPv6 detection (including compressed IPv6).
    • API Keys: Refill interval now uses milliseconds; fixed refill logic.
    • Organization: Require slug; type updates to allow undefined in optional parameters.
    • Client Proxy: Handle symbol properties in Proxy get trap.
    • SSO: Safe JSON parsing for OIDC/SAML configs and prevent duplicate providerId creation.
    • CI/Tooling: Bumped actions/cache to v4.3.0 and pnpm to 10.17.1; removed generated Prisma test schemas; test helpers add runWithUser/runWithDefaultUser using AsyncLocalStorage.

🔄 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/5041 **Author:** [@himself65](https://github.com/himself65) **Created:** 10/2/2025 **Status:** ✅ Merged **Merged:** 10/2/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `v1.3.x-latest` ← **Head:** `v1.3.x-staging` --- ### 📝 Commits (10+) - [`96732d4`](https://github.com/better-auth/better-auth/commit/96732d40fa89c795cea2a851fe4e06ff835c4fc7) fix: support compressed ipv6 format (#4982) - [`840834a`](https://github.com/better-auth/better-auth/commit/840834a2b5a0bc1388cb0c99900ecadf57b57c1b) fix(stripe): update with an existing subscription (#4988) - [`a637d20`](https://github.com/better-auth/better-auth/commit/a637d20b98be553341a5c3572a94f5d694e068cc) fix(oidc): properly enforce consent requirements per OIDC spec (#4974) - [`e4f185f`](https://github.com/better-auth/better-auth/commit/e4f185fa91c14f1001313d5100c3e4194cc218bb) fix(stripe): sync customer email on db change (#4995) - [`6d917c0`](https://github.com/better-auth/better-auth/commit/6d917c0df0d1e109504e5057d0a037ccd3e8c07e) chore: bump pnpm (#4996) - [`71ced0a`](https://github.com/better-auth/better-auth/commit/71ced0a0d8335440c32a70eac9edd56a686fb427) test: add `runWithDefaultUser` helper (#4714) - [`2241af3`](https://github.com/better-auth/better-auth/commit/2241af304389cfd5eee3ce0f48eb010aca967f85) test: rename `runWithUser` (#4993) - [`afe6f14`](https://github.com/better-auth/better-auth/commit/afe6f14ec27a3c9ffc981949e8238943ee582028) chore(deps): update actions/cache action to v4.3.0 (#4959) - [`cec4835`](https://github.com/better-auth/better-auth/commit/cec48359dd2e551dd6e023da97dee2bb6baad496) fix(oauth-proxy): should skip state check for oauth proxy (#4991) - [`cbd74b2`](https://github.com/better-auth/better-auth/commit/cbd74b227a196fcf1ff0ab4574eae325e073297c) fix(client): add lynx client exports (#4950) ### 📊 Changes **96 files changed** (+3297 additions, -1311 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+1 -1) 📝 `.github/workflows/e2e.yml` (+2 -2) 📝 `.github/workflows/preview.yml` (+1 -1) 📝 `docs/components/floating-ai-search.tsx` (+168 -68) 📝 `docs/components/search-dialog.tsx` (+0 -11) 📝 `docs/content/docs/concepts/plugins.mdx` (+1 -0) 📝 `docs/content/docs/integrations/nestjs.mdx` (+20 -7) 📝 `docs/content/docs/introduction.mdx` (+31 -0) 📝 `docs/content/docs/plugins/captcha.mdx` (+4 -2) 📝 `docs/content/docs/plugins/community-plugins.mdx` (+2 -1) 📝 `docs/content/docs/plugins/generic-oauth.mdx` (+2 -0) 📝 `docs/content/docs/plugins/last-login-method.mdx` (+1 -1) 📝 `docs/content/docs/plugins/oauth-proxy.mdx` (+3 -1) 📝 `docs/content/docs/reference/contributing.mdx` (+22 -1) 📝 `package.json` (+1 -2) 📝 `packages/better-auth/build.config.ts` (+2 -0) 📝 `packages/better-auth/package.json` (+14 -1) 📝 `packages/better-auth/src/adapters/adapter-factory/index.ts` (+4 -2) 📝 `packages/better-auth/src/adapters/adapter-factory/test/adapter-factory.test.ts` (+67 -0) 📝 `packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts` (+10 -1) _...and 76 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds MCP CLI support and CaptchaFox CAPTCHA, and fixes several OAuth/OIDC/Stripe and adapter edge cases for a more reliable auth experience. - New Features - CLI: Added mcp command to auto-configure the Better Auth MCP server for Cursor, Claude Code, Open Code, or manual setup. - CAPTCHA: Added CaptchaFox provider. - OAuth: tokenUrlParams can be a function in Generic OAuth. - Clients: Added Lynx client exports. - Accounts: Support additional account fields in options and migrations. - Telemetry: Lazy-loaded telemetry creation for lower startup cost. - Bug Fixes - OAuth Proxy: Option to skip state cookie check during proxy callbacks; auto-skip when productionURL matches baseURL or x-skip-oauth-proxy header is set. - OIDC: Properly enforce consent requirements and handle consent flow without forcing prompt. - Stripe: Upgrade existing subscriptions instead of creating new ones; sync customer email on change; ensure getCustomerCreateParams is called with new signature. - Adapters: Preserve null for nullable foreign keys (including number IDs); use updated values in WHERE clause on update; correct foreign key DB types; MongoDB allows null references. - Rate Limiter: Apply TTL in secondary storage based on window. - Cookies: Don’t throw on oversized cookie cache; log and skip caching. - Networking: Correct IPv4/IPv6 detection (including compressed IPv6). - API Keys: Refill interval now uses milliseconds; fixed refill logic. - Organization: Require slug; type updates to allow undefined in optional parameters. - Client Proxy: Handle symbol properties in Proxy get trap. - SSO: Safe JSON parsing for OIDC/SAML configs and prevent duplicate providerId creation. - CI/Tooling: Bumped actions/cache to v4.3.0 and pnpm to 10.17.1; removed generated Prisma test schemas; test helpers add runWithUser/runWithDefaultUser using AsyncLocalStorage. <!-- 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:11:05 -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#22633