Skip to content

chore(examples): upgrade Better Auth to 1.7 - #2446

Draft
khandrew1 wants to merge 1 commit into
chore/dependabot-security-overridesfrom
codex/better-auth-1-7-examples
Draft

chore(examples): upgrade Better Auth to 1.7#2446
khandrew1 wants to merge 1 commit into
chore/dependabot-security-overridesfrom
codex/better-auth-1-7-examples

Conversation

@khandrew1

@khandrew1 khandrew1 commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • upgrade the two in-memory Better Auth examples to better-auth and @better-auth/oauth-provider 1.7.2
  • replace the removed validAudiences configuration with resource-bound OAuth configuration
  • assign the MCP resource to dynamically registered clients through default and allowed resource policy
  • remove the 1.6-only warning suppression and update the workspace lockfile
  • retain exactOptionalPropertyTypes with a localized workaround for upstream Better Auth issue #10213

This PR is stacked on #2426 and resolves the remaining @better-auth/oauth-provider Dependabot alert (GHSA-p2fr-6hmx-4528). No database migration is needed because both examples intentionally use in-memory storage.

Testing

  • pnpm install --frozen-lockfile
  • built packages/client and packages/server
  • typechecked both Better Auth example packages
  • ESLint and Prettier checks on all changed source/config files
  • vitest run tests/oauth-direct-providers.test.ts (17 tests)
  • manually smoke-tested OAuth and OpenID discovery, dynamic native-client registration, default resource assignment, and the resource-bound authorization redirect

Summary by cubic

Upgrades the Better Auth examples to 1.7.2 and updates the workspace override range, adapting the OAuth provider plugin to Better Auth's new resources config API.

Migration

  • Replace validAudiences with resources, clientRegistrationDefaultResources, and clientRegistrationAllowedResources.
  • Remove silenceWarnings; it no longer exists in 1.7.

Written for commit b5448c6. Summary will update on new commits.

Review in cubic

@socket-security

Copy link
Copy Markdown

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

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm/​@​better-auth/​oauth-provider@​1.6.30 ⏵ 1.7.2100100 +280 +197100
Updatednpm/​better-auth@​1.6.30 ⏵ 1.7.2981008596100

View full report

@pkg-pr-new

pkg-pr-new Bot commented Sep 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

@mcp-use/agent

npm i https://pkg.pr.new/@mcp-use/agent@2446

@mcp-use/cli

npm i https://pkg.pr.new/@mcp-use/cli@2446

@mcp-use/client

npm i https://pkg.pr.new/@mcp-use/client@2446

create-mcp-use-app

npm i https://pkg.pr.new/create-mcp-use-app@2446

@mcp-use/inspector

npm i https://pkg.pr.new/@mcp-use/inspector@2446

mcp-use

npm i https://pkg.pr.new/mcp-use@2446

@mcp-use/tunnel

npm i https://pkg.pr.new/@mcp-use/tunnel@2446

commit: b5448c6

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 8 files

Re-trigger cubic

@khandrew1
khandrew1 marked this pull request as draft September 3, 2026 23:47
@tonxxd

tonxxd commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

better auth 1.7 is breaking, also on cloud there are several blockers to upgrade. We should sync about this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants