Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

fix(auth): remove the Better Auth dash plugin (#1338)

Goldflagdcdf39202e5b
diff --git a/docker-compose.cloud.yml b/docker-compose.cloud.yml
index b942fdae5..37be3e237 100644
--- a/docker-compose.cloud.yml
+++ b/docker-compose.cloud.yml
@@ -149,7 +149,6 @@ services:
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
- OPENROUTER_MODEL=${OPENROUTER_MODEL}
- CLUSTER_WORKERS=${CLUSTER_WORKERS:-4}
- - BETTER_AUTH_API_KEY=${BETTER_AUTH_API_KEY}
depends_on:
clickhouse:
condition: service_healthy
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index fe4d7b440..ed3edf326 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -350,9 +350,6 @@ importers:
'@better-auth/api-key':
specifier: 1.7.3
- '@better-auth/infra':
- specifier: ^0.1.12
- version: 0.1.12(992490ff4b8f4a0319a51bdd6f95009e)
'@better-auth/mcp':
specifier: 1.7.3
@@ -840,14 +837,6 @@ packages:
drizzle-orm:
optional: true
- '@better-auth/[email protected]':
- resolution: {integrity: sha512-NCOX5YIyCfJXJ8HDIyZdRpMuJtjQD8+tNYd+goXkgL+/6GYwEYOm4dRRcSmqlODsjL7vC4ZHfo9bfqpafq/9Nw==}
- peerDependencies:
- '@better-auth/core': '>=1.4.0'
- '@better-auth/sso': '>=1.4.0'
- better-auth: '>=1.4.0'
- zod: '>=4.1.12'
-
'@better-auth/[email protected]':
resolution: {integrity: sha512-UIsyJMIrjUnT+yTaS6dkCxYYmtPwxFHxwSJ8+CLty2II5w9BewlDxDA0/QzhoL/InYCPxQ5Y6xIgLHZG1dhwRA==}
peerDependencies:
@@ -6132,9 +6121,6 @@ packages:
resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
engines: {node: '>= 0.8.0'}
- resolution: {integrity: sha512-HKGs7GowShNls3Zh+7DTr6wYpPk5jC78l508yQQY3e8ZgJChM3A9JZghmMJZuK+5bogSfuTafpjksGSR3aMIEg==}
-
resolution: {integrity: sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==}
@@ -8782,17 +8768,6 @@ snapshots:
optionalDependencies:
- '@better-auth/[email protected](992490ff4b8f4a0319a51bdd6f95009e)':
- dependencies:
- '@better-fetch/fetch': 1.3.1
- better-call: 1.4.0([email protected])
- jose: 6.2.12
- libphonenumber-js: 1.12.40
- zod: 3.25.76
-
dependencies:
@@ -14084,8 +14059,6 @@ snapshots:
prelude-ls: 1.2.1
type-check: 0.4.0
-
dependencies:
immediate: 3.0.6
diff --git a/server/docs/better-auth-1.7.3.md b/server/docs/better-auth-1.7.3.md
index 1be1a55d6..09ab6577c 100644
--- a/server/docs/better-auth-1.7.3.md
+++ b/server/docs/better-auth-1.7.3.md
@@ -3,7 +3,7 @@
This upgrade moves the client, server, API key and SSO packages from 1.6.25 to
1.7.3. MCP OAuth now uses `@better-auth/mcp`, `@better-auth/oauth-provider` and
the JWT plugin, with an explicit consent page at `/auth/consent`.
-`@better-auth/infra` keeps its separate 0.1.x version. The MCP SDK and stateless
+The MCP SDK and stateless
transport remain on their existing versions; dynamic client registration stays
enabled.
diff --git a/server/package.json b/server/package.json
index 2934e7c29..9cd330f0d 100644
--- a/server/package.json
+++ b/server/package.json
@@ -42,7 +42,6 @@
"dependencies": {
"@aws-sdk/client-s3": "^3.842.0",
"@better-auth/api-key": "1.7.3",
- "@better-auth/infra": "^0.1.12",
"@better-auth/mcp": "1.7.3",
"@better-auth/oauth-provider": "1.7.3",
"@better-auth/sso": "1.7.3",
diff --git a/server/src/lib/auth.ts b/server/src/lib/auth.ts
index ee8d27bb9..7a010ede0 100644
--- a/server/src/lib/auth.ts
+++ b/server/src/lib/auth.ts
@@ -7,7 +7,6 @@ import { createOAuthPlugins, getAuthBaseUrl } from "./oauth.js";
import dotenv from "dotenv";
import { and, asc, eq, inArray, ne } from "drizzle-orm";
import pg from "pg";
-import { dash } from "@better-auth/infra";
import { apiKey } from "@better-auth/api-key";
import { db } from "../db/postgres/postgres.js";
@@ -91,7 +90,6 @@ const pluginList = [
rateLimit: apiKeyRateLimit,
},
]),
- dash(),
organization({
allowUserToCreateOrganization: true,
// better-auth checks this whenever it adds a member itself — including