[PR #7365] [MERGED] v1.4.13 #24162

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7365
Author: @himself65
Created: 1/14/2026
Status: Merged
Merged: 1/15/2026
Merged by: @himself65

Base: mainHead: v1.4.13-staging


📝 Commits (10+)

  • e2b293a feat(mcp): add setup_auth tool (#7307)
  • 8ab5ab3 chore(core): use global for multiple instances of BetterAuth (#7334)
  • 7784665 chore: fix lint warnings (#7336)
  • 2565039 feat(integrations): support both react and solid flavors of tanstack-start (#7340)
  • 5115a11 feat(scim): add Microsoft Entra ID SCIM Compatibility (#6589)
  • 023c790 chore(deps): bump hono from 4.11.3 to 4.11.4 (#7343)
  • de1e466 chore(scim): add SCIM demo (#6639)
  • d20753c fix(expo): fix cookie-based OAuth state with expo-authorization-proxy (#6933)
  • 1741d81 docs: clarify URL parameter descriptions for subscription upgrade (#7344)
  • a63f9c2 chore(core): fix error.cause in BetterAuthError (#7347)

📊 Changes

171 files changed (+6436 additions, -2532 deletions)

View changed files

CLAUDE.md (+75 -0)
📝 biome.json (+1 -0)
📝 demo/nextjs/app/api/auth/[...all]/route.ts (+7 -1)
📝 demo/nextjs/lib/auth.ts (+118 -0)
📝 demo/nextjs/package.json (+1 -0)
📝 demo/oidc-client/src/lib/auth/useAuth.ts (+4 -9)
📝 docs/app/blog/_components/_layout.tsx (+2 -2)
📝 docs/app/blog/_components/default-changelog.tsx (+1 -1)
📝 docs/app/blog/_components/stat-field.tsx (+11 -11)
📝 docs/app/changelogs/_components/_layout.tsx (+2 -2)
📝 docs/app/changelogs/_components/changelog-layout.tsx (+1 -1)
📝 docs/app/changelogs/_components/default-changelog.tsx (+1 -1)
📝 docs/app/changelogs/_components/stat-field.tsx (+11 -11)
📝 docs/components/api-method.tsx (+6 -6)
📝 docs/components/builder/code-tabs/code-tabs.tsx (+27 -0)
docs/components/builder/code-tabs/frameworks/nextjs.ts (+596 -0)
docs/components/builder/code-tabs/frameworks/nuxt.ts (+582 -0)
docs/components/builder/code-tabs/frameworks/svelte-kit.ts (+577 -0)
📝 docs/components/builder/code-tabs/index.tsx (+20 -101)
📝 docs/components/builder/index.tsx (+491 -329)

...and 80 more files

📄 Description

Summary by cubic

Adds the Better Auth MCP server with a setup_auth tool that outputs a complete auth setup (files, env vars, and commands), and updates the CLI to install both local and remote MCP servers across Cursor, Claude Code, and Open Code. Also improves core stability by sharing context state across multiple Better Auth instances in the same process, and adds Microsoft Entra ID SCIM compatibility.

  • New Features

    • Added @better-auth/mcp (stdio MCP server) with setup_auth to generate ready-to-use auth across frameworks, databases, and ORMs (files, env vars, commands).
    • CLI mcp: installs local (@better-auth/mcp) and remote MCP servers; new --local-only/--remote-only; smoother installs for Cursor, Claude Code, Open Code, and manual.
    • TanStack Start: switched to @tanstack/start-server-core to support both React and Solid.
    • SCIM: Microsoft Entra ID compatibility and support for defaultSCIM tokens for quick testing (docs and demo updated).
  • Bug Fixes

    • Expo: fixed cookie-based OAuth state handling with expo-authorization-proxy.
    • Organization: can reject expired invitations; list endpoints now return only pending invitations.
    • Stripe: fixed schema type inference and clarified upgrade URL parameters.
    • Tokens: expiration fields now return dates; removed refreshToken fields from getAccessToken response and OpenAPI schema.
    • Cookies: added expireCookie to clear cookies while preserving attributes (reliable state cookie cleanup across flows).

Written for commit 4293088565. 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/7365 **Author:** [@himself65](https://github.com/himself65) **Created:** 1/14/2026 **Status:** ✅ Merged **Merged:** 1/15/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `main` ← **Head:** `v1.4.13-staging` --- ### 📝 Commits (10+) - [`e2b293a`](https://github.com/better-auth/better-auth/commit/e2b293a0f22cfb6622c51ee02d0f5ba61f940931) feat(mcp): add setup_auth tool (#7307) - [`8ab5ab3`](https://github.com/better-auth/better-auth/commit/8ab5ab31ec638f418fb5242b8525af4d24d5f2aa) chore(core): use global for multiple instances of BetterAuth (#7334) - [`7784665`](https://github.com/better-auth/better-auth/commit/7784665e219cdbc54717ed0c7b0b031ffe0efe1d) chore: fix lint warnings (#7336) - [`2565039`](https://github.com/better-auth/better-auth/commit/2565039abf90b2c90c79b682a571a7888fae3ce0) feat(integrations): support both react and solid flavors of tanstack-start (#7340) - [`5115a11`](https://github.com/better-auth/better-auth/commit/5115a11951418bb9fead95912fb1605999b103f5) feat(scim): add Microsoft Entra ID SCIM Compatibility (#6589) - [`023c790`](https://github.com/better-auth/better-auth/commit/023c7904ca941bc9837ddc2826654e6e017c7fa8) chore(deps): bump hono from 4.11.3 to 4.11.4 (#7343) - [`de1e466`](https://github.com/better-auth/better-auth/commit/de1e466007d2dcdec4e9ccaa37cfdc6db7ca8342) chore(scim): add SCIM demo (#6639) - [`d20753c`](https://github.com/better-auth/better-auth/commit/d20753c7d2db72fcfae38c141733a3191e12a115) fix(expo): fix cookie-based OAuth state with expo-authorization-proxy (#6933) - [`1741d81`](https://github.com/better-auth/better-auth/commit/1741d819862e5ca3b51ffa08faf51b796e940805) docs: clarify URL parameter descriptions for subscription upgrade (#7344) - [`a63f9c2`](https://github.com/better-auth/better-auth/commit/a63f9c292084750323bcd82b002b9f8acc3ba43d) chore(core): fix error.cause in `BetterAuthError` (#7347) ### 📊 Changes **171 files changed** (+6436 additions, -2532 deletions) <details> <summary>View changed files</summary> ➕ `CLAUDE.md` (+75 -0) 📝 `biome.json` (+1 -0) 📝 `demo/nextjs/app/api/auth/[...all]/route.ts` (+7 -1) 📝 `demo/nextjs/lib/auth.ts` (+118 -0) 📝 `demo/nextjs/package.json` (+1 -0) 📝 `demo/oidc-client/src/lib/auth/useAuth.ts` (+4 -9) 📝 `docs/app/blog/_components/_layout.tsx` (+2 -2) 📝 `docs/app/blog/_components/default-changelog.tsx` (+1 -1) 📝 `docs/app/blog/_components/stat-field.tsx` (+11 -11) 📝 `docs/app/changelogs/_components/_layout.tsx` (+2 -2) 📝 `docs/app/changelogs/_components/changelog-layout.tsx` (+1 -1) 📝 `docs/app/changelogs/_components/default-changelog.tsx` (+1 -1) 📝 `docs/app/changelogs/_components/stat-field.tsx` (+11 -11) 📝 `docs/components/api-method.tsx` (+6 -6) 📝 `docs/components/builder/code-tabs/code-tabs.tsx` (+27 -0) ➕ `docs/components/builder/code-tabs/frameworks/nextjs.ts` (+596 -0) ➕ `docs/components/builder/code-tabs/frameworks/nuxt.ts` (+582 -0) ➕ `docs/components/builder/code-tabs/frameworks/svelte-kit.ts` (+577 -0) 📝 `docs/components/builder/code-tabs/index.tsx` (+20 -101) 📝 `docs/components/builder/index.tsx` (+491 -329) _...and 80 more files_ </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Adds the Better Auth MCP server with a setup_auth tool that outputs a complete auth setup (files, env vars, and commands), and updates the CLI to install both local and remote MCP servers across Cursor, Claude Code, and Open Code. Also improves core stability by sharing context state across multiple Better Auth instances in the same process, and adds Microsoft Entra ID SCIM compatibility. - **New Features** - Added @better-auth/mcp (stdio MCP server) with setup_auth to generate ready-to-use auth across frameworks, databases, and ORMs (files, env vars, commands). - CLI mcp: installs local (@better-auth/mcp) and remote MCP servers; new --local-only/--remote-only; smoother installs for Cursor, Claude Code, Open Code, and manual. - TanStack Start: switched to @tanstack/start-server-core to support both React and Solid. - SCIM: Microsoft Entra ID compatibility and support for defaultSCIM tokens for quick testing (docs and demo updated). - **Bug Fixes** - Expo: fixed cookie-based OAuth state handling with expo-authorization-proxy. - Organization: can reject expired invitations; list endpoints now return only pending invitations. - Stripe: fixed schema type inference and clarified upgrade URL parameters. - Tokens: expiration fields now return dates; removed refreshToken fields from getAccessToken response and OpenAPI schema. - Cookies: added expireCookie to clear cookies while preserving attributes (reliable state cookie cleanup across flows). <sup>Written for commit 4293088565492c0bd7c3b457ac8f56fa02a818f1. 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:12:32 -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#24162