From f46c97ff05ff6de7c9da39b408308803f70344f2 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 07:04:28 +0000 Subject: [PATCH 01/20] fix(deps): take the fixed releases for seven advisories and refresh better-auth, undici, nodemailer and the MCP SDK Raises the declared floors for fast-xml-parser, glob, nodemailer and @modelcontextprotocol/sdk, floors the transitive ws, cross-spawn and minimatch 11.x lines in pnpm-workspace.yaml's overrides, lifts the better-auth family target 1.7.12 -> 1.7.29 (all eleven) and undici's 8.x target to ^8.14.0. The temporary @better-auth/scim patch is regenerated for 1.7.29, which still lacks the name recompose. Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- examples/app-showcase/package.json | 2 +- .../connectors/connector-mcp/package.json | 2 +- packages/drivers/driver-odata/package.json | 2 +- packages/mcp/package.json | 2 +- packages/metadata/package.json | 2 +- packages/plugins/plugin-auth/package.json | 12 +- packages/plugins/plugin-email/package.json | 2 +- ....patch => @better-auth__scim@1.7.29.patch} | 4 +- pnpm-lock.yaml | 395 +++++++++--------- pnpm-workspace.yaml | 54 ++- ui/packages/auth/package.json | 2 +- ui/packages/cli/package.json | 2 +- 12 files changed, 245 insertions(+), 236 deletions(-) rename patches/{@better-auth__scim@1.7.12.patch => @better-auth__scim@1.7.29.patch} (90%) diff --git a/examples/app-showcase/package.json b/examples/app-showcase/package.json index ac38a647982..8e5f67ae818 100644 --- a/examples/app-showcase/package.json +++ b/examples/app-showcase/package.json @@ -23,7 +23,7 @@ "test:smoke": "playwright test --config=playwright.config.ts" }, "dependencies": { - "@modelcontextprotocol/sdk": "^1.30.1", + "@modelcontextprotocol/sdk": "^1.32.2", "@objectstack/cloud-connection": "workspace:*", "@objectstack/connector-mcp": "workspace:*", "@objectstack/connector-openapi": "workspace:*", diff --git a/packages/connectors/connector-mcp/package.json b/packages/connectors/connector-mcp/package.json index 5821cd4f087..dee96a23ade 100644 --- a/packages/connectors/connector-mcp/package.json +++ b/packages/connectors/connector-mcp/package.json @@ -27,7 +27,7 @@ "typecheck": "tsc --noEmit && pnpm check:test-typecheck" }, "dependencies": { - "@modelcontextprotocol/sdk": "^1.30.1", + "@modelcontextprotocol/sdk": "^1.32.2", "@objectstack/core": "workspace:*", "@objectstack/spec": "workspace:*", "@objectstack/types": "workspace:*" diff --git a/packages/drivers/driver-odata/package.json b/packages/drivers/driver-odata/package.json index 220ef38939c..e94d6691412 100644 --- a/packages/drivers/driver-odata/package.json +++ b/packages/drivers/driver-odata/package.json @@ -38,7 +38,7 @@ "@objectstack/core": "workspace:*", "@objectstack/spec": "workspace:*", "@objectstack/types": "workspace:*", - "fast-xml-parser": "^5.12.0", + "fast-xml-parser": "^5.12.1", "zod": "^4.6.6" }, "devDependencies": { diff --git a/packages/mcp/package.json b/packages/mcp/package.json index e0c2d34aec1..477d9ea70a6 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -27,7 +27,7 @@ "typecheck": "tsc --noEmit && pnpm check:test-typecheck" }, "dependencies": { - "@modelcontextprotocol/sdk": "^1.30.1", + "@modelcontextprotocol/sdk": "^1.32.2", "@objectstack/core": "workspace:*", "@objectstack/formula": "workspace:*", "@objectstack/lint": "workspace:*", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index b90962ffb79..b68a941d95b 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -127,7 +127,7 @@ "@objectstack/spec": "workspace:*", "@objectstack/types": "workspace:*", "chokidar": "^5.0.0", - "glob": "^14.0.3", + "glob": "^14.0.6", "js-yaml": "^5.4.1", "zod": "^4.6.6" }, diff --git a/packages/plugins/plugin-auth/package.json b/packages/plugins/plugin-auth/package.json index bf94f013307..ed88a7c0e7f 100644 --- a/packages/plugins/plugin-auth/package.json +++ b/packages/plugins/plugin-auth/package.json @@ -48,10 +48,10 @@ "gen:test-typecheck-debt": "tsx ../../../scripts/check-test-typecheck.mts --update --package packages/plugins/plugin-auth --project tsconfig.test.json" }, "dependencies": { - "@better-auth/core": "1.7.12", - "@better-auth/oauth-provider": "1.7.12", - "@better-auth/scim": "1.7.12", - "@better-auth/sso": "1.7.12", + "@better-auth/core": "1.7.29", + "@better-auth/oauth-provider": "1.7.29", + "@better-auth/scim": "1.7.29", + "@better-auth/sso": "1.7.29", "@noble/hashes": "^2.4.0", "@objectstack/core": "workspace:*", "@objectstack/platform-objects": "workspace:*", @@ -60,8 +60,8 @@ "@objectstack/service-messaging": "workspace:*", "@objectstack/spec": "workspace:*", "@objectstack/types": "workspace:*", - "better-auth": "1.7.12", - "fast-xml-parser": "5.12.0", + "better-auth": "1.7.29", + "fast-xml-parser": "5.12.1", "hono": "^4.13.16", "jose": "^6.2.12" }, diff --git a/packages/plugins/plugin-email/package.json b/packages/plugins/plugin-email/package.json index 70579c804b7..5e2078cc10f 100644 --- a/packages/plugins/plugin-email/package.json +++ b/packages/plugins/plugin-email/package.json @@ -31,7 +31,7 @@ "@objectstack/objectql": "workspace:*", "@objectstack/platform-objects": "workspace:*", "@objectstack/spec": "workspace:*", - "nodemailer": "^10.1.4" + "nodemailer": "^10.6.2" }, "devDependencies": { "@objectstack/driver-sql": "workspace:*", diff --git a/patches/@better-auth__scim@1.7.12.patch b/patches/@better-auth__scim@1.7.29.patch similarity index 90% rename from patches/@better-auth__scim@1.7.12.patch rename to patches/@better-auth__scim@1.7.29.patch index 5b4ac270543..760841b27c1 100644 --- a/patches/@better-auth__scim@1.7.12.patch +++ b/patches/@better-auth__scim@1.7.29.patch @@ -16,10 +16,10 @@ The regression pin packages/plugins/plugin-auth/src/scim-name-recompose.test.ts stays. diff --git a/dist/index.mjs b/dist/index.mjs -index 725b7ad56a19d2b4b9a3a5e9a79b9f665972a22e..f74ef80f51d8a7945872e6ebd151fa0da5de0c3c 100644 +index b7d3531180ff4d45fe5f6e66e584ed6b36a8cfe3..cd12b5bb9168c5d3491d23553e14d3cace84c56d 100644 --- a/dist/index.mjs +++ b/dist/index.mjs -@@ -6001,7 +6001,10 @@ function composeName(state) { +@@ -6024,7 +6024,10 @@ function composeName(state) { return [state.givenName, state.familyName].filter(Boolean).join(" "); } function setNamePart(state, attribute, value) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c64f62026ea..45753689315 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -24,18 +24,18 @@ overrides: tar@>=2.0.0 <8.0.0: ^7.5.11 form-data@<5.0.0: '>=4.0.6' undici@>=7.23.0 <8.0.0: ^7.30.1 - undici@>=8.1.0 <9.0.0: ^8.12.2 - better-auth@<2.0.0: 1.7.12 - '@better-auth/core@<2.0.0': 1.7.12 - '@better-auth/scim@<2.0.0': 1.7.12 - '@better-auth/oauth-provider@<2.0.0': 1.7.12 - '@better-auth/sso@<2.0.0': 1.7.12 - '@better-auth/drizzle-adapter@<2.0.0': 1.7.12 - '@better-auth/kysely-adapter@<2.0.0': 1.7.12 - '@better-auth/memory-adapter@<2.0.0': 1.7.12 - '@better-auth/mongo-adapter@<2.0.0': 1.7.12 - '@better-auth/prisma-adapter@<2.0.0': 1.7.12 - '@better-auth/telemetry@<2.0.0': 1.7.12 + undici@>=8.1.0 <9.0.0: ^8.14.0 + better-auth@<2.0.0: 1.7.29 + '@better-auth/core@<2.0.0': 1.7.29 + '@better-auth/scim@<2.0.0': 1.7.29 + '@better-auth/oauth-provider@<2.0.0': 1.7.29 + '@better-auth/sso@<2.0.0': 1.7.29 + '@better-auth/drizzle-adapter@<2.0.0': 1.7.29 + '@better-auth/kysely-adapter@<2.0.0': 1.7.29 + '@better-auth/memory-adapter@<2.0.0': 1.7.29 + '@better-auth/mongo-adapter@<2.0.0': 1.7.29 + '@better-auth/prisma-adapter@<2.0.0': 1.7.29 + '@better-auth/telemetry@<2.0.0': 1.7.29 uuid@<12.0.0: ^11.1.1 postcss@<9.0.0: ^8.5.10 cookie@<0.8.0: ^0.7.0 @@ -59,13 +59,16 @@ overrides: shell-quote@>=1.8.4 <2.0.0: ^1.11.0 body-parser@>=2.0.0 <3.0.0: ^2.4.0 happy-dom@>=17.0.0 <22.0.0: ^21.0.4 + ws@>=8.0.0 <9.0.0: ^8.23.0 + cross-spawn@>=7.0.0 <8.0.0: ^7.1.0 + minimatch@>=11.0.0 <12.0.0: ^11.0.8 packageExtensionsChecksum: sha256-TylZCxIFIjBWkxvqZtA8J9KPRkbLMcmcjmntl2qf4PA= patchedDependencies: - '@better-auth/scim@1.7.12': - hash: 2743a6580305216c17b7ad0e4dfcdcb83f999f1194b4bd99412dbcae5a867d37 - path: patches/@better-auth__scim@1.7.12.patch + '@better-auth/scim@1.7.29': + hash: 5ea058478500018a9800ea72010147eef408bb2c63db9590e27ca553ee8b1248 + path: patches/@better-auth__scim@1.7.29.patch '@radix-ui/react-focus-scope@1.1.16': hash: 6512888b2c7cb4b20942ed027faf189e038db25e70452175d36020f0dd09fe7d path: patches/@radix-ui__react-focus-scope.patch @@ -240,8 +243,8 @@ importers: examples/app-showcase: dependencies: '@modelcontextprotocol/sdk': - specifier: ^1.30.1 - version: 1.32.1(zod@4.6.7) + specifier: ^1.32.2 + version: 1.32.2(zod@4.6.7) '@objectstack/cloud-connection': specifier: workspace:* version: link:../../packages/cloud-connection @@ -991,8 +994,8 @@ importers: packages/connectors/connector-mcp: dependencies: '@modelcontextprotocol/sdk': - specifier: ^1.30.1 - version: 1.32.1(zod@4.6.7) + specifier: ^1.32.2 + version: 1.32.2(zod@4.6.7) '@objectstack/core': specifier: workspace:* version: link:../../core @@ -1256,8 +1259,8 @@ importers: specifier: workspace:* version: link:../../types fast-xml-parser: - specifier: ^5.12.0 - version: 5.12.0 + specifier: ^5.12.1 + version: 5.12.1 zod: specifier: ^4.6.6 version: 4.6.7 @@ -1479,8 +1482,8 @@ importers: packages/mcp: dependencies: '@modelcontextprotocol/sdk': - specifier: ^1.30.1 - version: 1.32.1(zod@4.6.7) + specifier: ^1.32.2 + version: 1.32.2(zod@4.6.7) '@objectstack/core': specifier: workspace:* version: link:../core @@ -1558,8 +1561,8 @@ importers: specifier: ^5.0.0 version: 5.0.0 glob: - specifier: ^14.0.3 - version: 14.0.3 + specifier: ^14.0.6 + version: 14.0.7 js-yaml: specifier: ^5.4.1 version: 5.4.2 @@ -2049,17 +2052,17 @@ importers: packages/plugins/plugin-auth: dependencies: '@better-auth/core': - specifier: 1.7.12 - version: 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + specifier: 1.7.29 + version: 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) '@better-auth/oauth-provider': - specifier: 1.7.12 - version: 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7)) + specifier: 1.7.29 + version: 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7)) '@better-auth/scim': - specifier: 1.7.12 - version: 1.7.12(patch_hash=2743a6580305216c17b7ad0e4dfcdcb83f999f1194b4bd99412dbcae5a867d37)(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7)) + specifier: 1.7.29 + version: 1.7.29(patch_hash=5ea058478500018a9800ea72010147eef408bb2c63db9590e27ca553ee8b1248)(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7)) '@better-auth/sso': - specifier: 1.7.12 - version: 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7)) + specifier: 1.7.29 + version: 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7)) '@noble/hashes': specifier: ^2.4.0 version: 2.4.0 @@ -2085,11 +2088,11 @@ importers: specifier: workspace:* version: link:../../types better-auth: - specifier: 1.7.12 - version: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + specifier: 1.7.29 + version: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) fast-xml-parser: - specifier: 5.12.0 - version: 5.12.0 + specifier: 5.12.1 + version: 5.12.1 hono: specifier: ^4.13.16 version: 4.13.18 @@ -2216,8 +2219,8 @@ importers: specifier: workspace:* version: link:../../spec nodemailer: - specifier: ^10.1.4 - version: 10.2.1 + specifier: ^10.6.2 + version: 10.6.2 devDependencies: '@objectstack/driver-sql': specifier: workspace:* @@ -4516,8 +4519,8 @@ importers: specifier: workspace:^ version: link:../../../packages/spec better-auth: - specifier: 1.7.12 - version: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + specifier: 1.7.29 + version: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) devDependencies: '@types/react': specifier: 19.3.0 @@ -4568,8 +4571,8 @@ importers: specifier: ^8.6.2 version: 8.6.2(express@4.22.2) glob: - specifier: ^14.0.3 - version: 14.0.3 + specifier: ^14.0.6 + version: 14.0.7 js-yaml: specifier: ^5.4.1 version: 5.4.2 @@ -6884,13 +6887,13 @@ packages: resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} engines: {node: '>=18'} - '@better-auth/core@1.7.12': - resolution: {integrity: sha512-SUStBGHJ13KnSO6+7U/1DSlfuOtln4jtOrFZqzQtxZVHZIrAoMjwHNGitlF+s7hvKbuC3Z14xjnqfLLqIqGfxw==} + '@better-auth/core@1.7.29': + resolution: {integrity: sha512-zLDC4nUtBz7t3uPM+TG6OukkALYQYi+IxWjBNX59ynSiyHomXLj0q2dDe6k61y3mFzhSAdDYhjZ/0D0W/LGcyw==} peerDependencies: '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.2 + '@better-fetch/fetch': 1.3.3 '@opentelemetry/api': ^1.9.0 - better-call: 1.4.4 + better-call: ~1.4.5 jose: ^6.1.0 kysely: ^0.28.5 || ^0.29.0 nanostores: ^1.0.1 @@ -6898,55 +6901,55 @@ packages: '@opentelemetry/api': optional: true - '@better-auth/drizzle-adapter@1.7.12': - resolution: {integrity: sha512-Qzoyuf05aK01Pc0k3EXv8Xj3XCT2m2dCWc5HoB7x+xX6N3Pm2eQsca+UIArsJcbuNEWWP3L51oIebnBoHJ5DTw==} + '@better-auth/drizzle-adapter@1.7.29': + resolution: {integrity: sha512-CiIWG+ahxEhVAKgOVHoclzPFrDEGJhTOPk/CvHRCnFS/06bVdk/bTXFd4U5NUfjeXnaA5W2A4A2+zOMCR9walg==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0 peerDependenciesMeta: drizzle-orm: optional: true - '@better-auth/kysely-adapter@1.7.12': - resolution: {integrity: sha512-1PaFXktLv4n3DmrGbPaCj5SsvcT40NnWw7NLua5/J1+8/A051N5ZzqOwJifXEIQX5k6NdwvmymwDQxKytduEAQ==} + '@better-auth/kysely-adapter@1.7.29': + resolution: {integrity: sha512-jPYkt84dAvsVTyBSEQ8o7hyYnpXxhvsa53AP8sRzvxC1M9BrBWFr+2YQposy+4SgfcPVJCbwlLhTl8YN8pAGqg==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 kysely: ^0.28.17 || ^0.29.0 peerDependenciesMeta: kysely: optional: true - '@better-auth/memory-adapter@1.7.12': - resolution: {integrity: sha512-glaDwXzDptnddHqRuu7fj47FAssUcOzLNgdlTGJoEPrspkX69x2vnXwgAzNuApjZI21WLtPH/rQ6CN+DQGybPA==} + '@better-auth/memory-adapter@1.7.29': + resolution: {integrity: sha512-uMqyezB5wNuB+E0MjDQwh8XxnJgrYB3kw4eDIWCeFDhxwEI/Vxop8Qz8MIu31BN21ivP01FAwuuTvegmRVRjuQ==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-auth/mongo-adapter@1.7.12': - resolution: {integrity: sha512-HKV4sgYSw/Gdt9AuHlESMkiKL72SWdGweDy1Wsyxoh06BpG7aNu4aSJ7marNpMdKZteyRbxWWqQkA9ediA8qFw==} + '@better-auth/mongo-adapter@1.7.29': + resolution: {integrity: sha512-oTxEGVpqkGT1maS49+5l66+w1Ly9Qxe0rR1hZxM+j6csgBR/9jhhB4L+9MTUp7HensdFsFrahs8YJZ0AF4DSjw==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 mongodb: ^6.0.0 || ^7.0.0 peerDependenciesMeta: mongodb: optional: true - '@better-auth/oauth-provider@1.7.12': - resolution: {integrity: sha512-XzjlApbWtuuoEK63CUNHbgs8zpr3AjlQeGbT1vWEPqvOvI2z4lOaIvIsogomfqFAgj/jgB0zMGYjt0MRyW0T7w==} + '@better-auth/oauth-provider@1.7.29': + resolution: {integrity: sha512-uY+jUZ+0uKclgaqH0TWbb9/h/O0Pa1S+h6gGH6NFMwF0yVard8kSjAPJcm6px4ox0OHRS215wPX1XBt4oxyjkA==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.2 - better-auth: 1.7.12 - better-call: 1.4.4 + '@better-fetch/fetch': 1.3.3 + better-auth: 1.7.29 + better-call: ~1.4.5 - '@better-auth/prisma-adapter@1.7.12': - resolution: {integrity: sha512-FZRX6ORbwhDmeYE1Tl0IPtUn8v3BlVFgbJxDnm/DCNHxuFRf+0t4HfddUgYeYehHFR8aSDsdYX44fEFWM9877w==} + '@better-auth/prisma-adapter@1.7.29': + resolution: {integrity: sha512-0hslQE28c8CF3p1hIf1D/vVBQOm8DO40JLPV4uGLXSZlB1wqmuLOBOZ7wbPiw2NHggJm8WBRbO1WJ9JYL7ROYQ==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 @@ -6956,35 +6959,35 @@ packages: prisma: optional: true - '@better-auth/scim@1.7.12': - resolution: {integrity: sha512-mmDGQr9tu6z0mUhuQ5zGlutU0wmg3zujuP2uz02FqVil7RdEsHuYI6THeahF2EQEmCQ4E241SI8Lp94OruQw3A==} + '@better-auth/scim@1.7.29': + resolution: {integrity: sha512-nvbCqJxdwzCYGeGqwOdiPoeCpjTt+JVouff6XdSYhJKgHlKMuGpvNphG0GStGfze6EUXdaPetmHE2kD6GscrOA==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 - better-auth: 1.7.12 - better-call: 1.4.4 + better-auth: 1.7.29 + better-call: ~1.4.5 - '@better-auth/sso@1.7.12': - resolution: {integrity: sha512-fxUD9+MjNRhuT+nVtFgqPvWAvwWJVacuIijdf4x2nCHqR44xfFgYYWK2iB6vOiin9Qxof9kTPKvRl7ZCJHdwFQ==} + '@better-auth/sso@1.7.29': + resolution: {integrity: sha512-/vfyGiReXogI0d2FplnRmc9esJy5/I1AYicy41xdZiEHhpQwm+CMcgzVcsQ/u/gWvg4oY2iyS+3P80biK3p4dg==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.2 - better-auth: 1.7.12 - better-call: 1.4.4 + '@better-fetch/fetch': 1.3.3 + better-auth: 1.7.29 + better-call: ~1.4.5 - '@better-auth/telemetry@1.7.12': - resolution: {integrity: sha512-DaDkKNnI99vKGGbWq9KJg2uYeaOjsK9nIBw9T2m2KG/RkxpvQRjYkZ00++up2bZQkR5pB1nukGbplza3UJG/Xg==} + '@better-auth/telemetry@1.7.29': + resolution: {integrity: sha512-0XVUsU6Gr+v0QaF6VK9Lu+EOn/fMLCWR/YvCXSZvoqimn7+8WDXNdJcfREXCIaLTnDDmS8a+lFNNzBVQt+3r2w==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.2 + '@better-fetch/fetch': 1.3.3 - '@better-auth/utils@0.5.0': - resolution: {integrity: sha512-BL8W4EfIZFwlu0r54m3v1ztjDhu6dDe/amLTm0xybmbZaNgYUqhD3SjpAsnq0q8YD6/ki4iwIgxJNLP/N3TxiA==} + '@better-auth/utils@0.5.1': + resolution: {integrity: sha512-WETqw5vQ52uQ/xwWR4E8rTgT6fDEr/wnS+otDNkBCa/69281FCF32OKDdQUcahMCnjsvqXBNiEvAQHFB0EVRRg==} - '@better-fetch/fetch@1.3.2': - resolution: {integrity: sha512-Gs7n99b5tqUC6cQAPbV0uED3IraHB6xQbHLQ/C3l7ZFafHScOx9pQ+DYmP5blbLFShVWLqxNUlI9wi4xU/X+ow==} + '@better-fetch/fetch@1.3.3': + resolution: {integrity: sha512-U6SlDt/GUWtK2JAxS/NhdoYTEim+EL1G5byz2TUj83KjLZBUpYzb5SmX0aXaCnbGkAjFKnV/o/0+cyXMbEcqqg==} '@braintree/sanitize-url@7.1.2': resolution: {integrity: sha512-jigsZK+sMF/cuiB7sERuo9V7N9jx+dhmHHnQyDSVdpZwVutaBu7WvNYqMDLSgFgfB30n452TP3vjDAvFC973mA==} @@ -7643,9 +7646,6 @@ packages: '@ioredis/commands@2.0.0': resolution: {integrity: sha512-vrx0AE/T0h7cRZwfo1M39Cr+ZhZrkf0V8mQN75wucKCxCLD9l/VX6no3gFvrLqD1IlG/1LtzWovqEw3t0Vr9zg==} - '@isaacs/nonrecursive-glob-match@1.0.3': - resolution: {integrity: sha512-SI7kyKHq4XXDRozw+r9GlRZkia1ZkFrpLW98r2IC2Bpr8YkFGE3fvjzmxCG0x78A++69HmDNrDvSMYBZmHGpKA==} - '@isaacs/nonrecursive-glob-match@1.1.0': resolution: {integrity: sha512-GPm/Dbvk5RLmhRnxXIa7nTpK0xtl4E0wj0MslsuNiJ1FIROU+2+9lgUC/dgF7Ey4QCWhfEsgxilMRMCdHPfDfw==} @@ -7824,8 +7824,8 @@ packages: '@microsoft/tsdoc@0.17.1': resolution: {integrity: sha512-VHyYyyoH63jFoO3shpw9Zfijk5v/9p/VrClW35z0/q6ooK7sSmxpzOkS4iZPxs3vO4XtBW4H38HRAKkAMIK7DA==} - '@modelcontextprotocol/sdk@1.32.1': - resolution: {integrity: sha512-2DdE+SJDtzLEEWzY1ZjY7Q+VcPhcV1KisD3zI4u0XZyktsjHum1mwbMI+JaulUBi2OZk+KJAi2uPXzxichPkdw==} + '@modelcontextprotocol/sdk@1.32.2': + resolution: {integrity: sha512-SWsVtH/0vULSQStoZ6xxH2K09Li8fXYTMC64ZeogCdpZ3XSi1eCPOByV1OpuJxuI3OcmHhosDWYyii07tpPsLw==} engines: {node: '>=18'} peerDependencies: '@cfworker/json-schema': ^4.1.1 @@ -10118,8 +10118,8 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - better-auth@1.7.12: - resolution: {integrity: sha512-f1fEG0QdTslzbmFA+vOGFFW/XXCWkG4kBxLeH9n1vp1otTH9+ZzV6EJ6797GStWeiYYgS5Vnt9xqE12KwSyAAw==} + better-auth@1.7.29: + resolution: {integrity: sha512-UuLwvDBfg3dNMNfV8lubu13LNLhLtHMZbUVAn9nkTQ/a2pk+Keto+U7ZXbiP3k98GZ+fYWc/HX8Rv81iA+wGvg==} peerDependencies: '@lynx-js/react': '*' '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 @@ -10178,8 +10178,8 @@ packages: vue: optional: true - better-call@1.4.4: - resolution: {integrity: sha512-Gq4XdGFy4dmUxFEAX2nj0ycFcFbD9ZWh8YROouZoyXeF1M11TpYbplk0pDByTFF8Wz+MYa6W9052c9m7dD+mfw==} + better-call@1.4.6: + resolution: {integrity: sha512-tJ3lkMFeQProwiuZiQApwgVmYmBfXM4sAP7HxMsnAFtl4NWZhamG+RGoMNgHwGYkmcB+3eWyo3vgt4sWUUSdQA==} peerDependencies: zod: ^4.0.0 peerDependenciesMeta: @@ -10532,8 +10532,8 @@ packages: resolution: {integrity: sha512-ixNtAJndqh173VQ4KodSdJEI6nuioBWI0V1ITNKhZZsO0pEMoDxz539T4FTTbSZ/xIOSuDnzxLVRqBVSvPNE2g==} engines: {node: '>=18.0'} - cross-spawn@7.0.6: - resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==} + cross-spawn@7.1.2: + resolution: {integrity: sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==} engines: {node: '>= 8'} css-tree@3.2.1: @@ -11144,11 +11144,11 @@ packages: fast-wrap-ansi@0.2.2: resolution: {integrity: sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==} - fast-xml-builder@1.3.1: - resolution: {integrity: sha512-pIM/1n3ntFXKYrUZwW7QCK0gAW7XY+wzj1YMIV3tLDvPj/V+zTGJK5e3/4WJfwj0qWw2ElNXiTixda/R+3YSug==} + fast-xml-builder@1.3.2: + resolution: {integrity: sha512-OX91VSlShLPDgRZV7tk/YQ4l8tT75QziF5Ixg8g4PFbCVPjuTWwN+yQfAxLJ0dufJpprdOd6HlM74Jhd39TcBQ==} - fast-xml-parser@5.12.0: - resolution: {integrity: sha512-/pXxRBtwxY9w8z7YbgsvIPPcPvFDsTbIkWwTQJhzNJPokj+TbN6ftmcv4j/pEQDvOCNnKGDzuk5Bo2oogIOiFg==} + fast-xml-parser@5.12.1: + resolution: {integrity: sha512-wR8dO/fx+z8C5exuem1e7BKOWvjsuzvjS/tvA/Xu3Z1zQqJGcXrPzXbcAiaMgp2KjreEROcTkmnnisrcmJ2hYQ==} hasBin: true fastdom@1.0.12: @@ -11440,8 +11440,8 @@ packages: glob-to-regexp@0.4.1: resolution: {integrity: sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw==} - glob@14.0.3: - resolution: {integrity: sha512-A1vjIwC3qpdCso45Iw127gnp7sPhqgY8lUQhDrArIs+GbmfaaVPFuoyy7WyLT9EPZCRZ7j7aLdwUhQmHWesEow==} + glob@14.0.7: + resolution: {integrity: sha512-ob8P0VbyEjcLG2ycNYmzYhZj65kkcN5b7tt5moGhTq3rkXtuU8MB+i0GIzPtLnSHVF2DkK4M+nQRojDvsOGVJw==} engines: {node: 18 || 20 || >=22} glob@7.2.3: @@ -12552,10 +12552,6 @@ packages: mingo@7.2.4: resolution: {integrity: sha512-KrxHKzMMguL+G1lBC6YbU5UTXdw2viwVHNTPzNYVfEQfSAoetC3M1a7rlveOksn/96oNy+QwBlIXvx/q6rWyxQ==} - minimatch@11.0.3: - resolution: {integrity: sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw==} - engines: {node: 18 || 20 || >=22} - minimatch@11.0.9: resolution: {integrity: sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==} engines: {node: 20 || >=22} @@ -12783,8 +12779,8 @@ packages: node-rsa@1.1.1: resolution: {integrity: sha512-Jd4cvbJMryN21r5HgxQOpMEqv+ooke/korixNNK3mGqfGJmy0M77WDDzo/05969+OkMy3XW1UuZsSmW9KQm7Fw==} - nodemailer@10.2.1: - resolution: {integrity: sha512-ZrDNsPFoDMwefNs7sJwrYiEJ/CG4ClJWDZv05iNJsEBWa8GRDry1QJHTJxsuTAY9eDDKjX4k+q3SxslXJOao7w==} + nodemailer@10.6.2: + resolution: {integrity: sha512-YZFYjE+wUnu1/lCmB/maoHrU2S1WEsHX+1+91CBX4YCEuvr+Gh/ZJ0GWlaaUJ0iMfzKwYEBXfOK4YO5QLEbRMw==} engines: {node: '>=20.0.0'} normalize-path@3.0.0: @@ -13607,9 +13603,6 @@ packages: set-cookie-parser@2.7.2: resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==} - set-cookie-parser@3.1.2: - resolution: {integrity: sha512-5/r/lTwbJ3zQ+qwdUFZYeRNqda7P5HD8zQKqlSjdGt1/S0cjLAphHusj4Y58ahDtWn/g32xrIS58/ikOvwl0Lw==} - set-cookie-parser@3.2.1: resolution: {integrity: sha512-Npd1Pt+4zb3BrSZDPd2qFwRpS6b1EUEasRrO8xS0zMJi0fApXXK5YuzP0minyJnxwnFHoVoJwA55q0A0cu63gQ==} @@ -14110,8 +14103,8 @@ packages: resolution: {integrity: sha512-03KrMbjIFDWQR5RNPrSw3bd1r12JpyFQl9/yxjUbJtqkjmllqC5lFjZh6ujeuJCKr8EOQvRW872Oy/az+nLYxg==} engines: {node: '>=20.18.1'} - undici@8.12.3: - resolution: {integrity: sha512-+fdndUTwBP86cVjihTp21hZHo7d6oj1c/47XPA3lL8mM0XHs+C4EkcjmgRsFnFk2f/UONGDy9ItBItmXsLOQHw==} + undici@8.14.0: + resolution: {integrity: sha512-MqM6wqORYo0jb1WFUwFKZTFWFz6VeBMPj9op5Hq+RvlrQjISQCyLEfx5+/iqOLWC/LL1HliJ5t0NP1BgYpXeVQ==} engines: {node: '>=22.19.0'} unified@11.0.5: @@ -14475,8 +14468,8 @@ packages: wrappy@1.0.2: resolution: {integrity: sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==} - ws@8.22.0: - resolution: {integrity: sha512-Ydggc987+RO0AnWtZ/7Wq9FtNvcrL1b/RO0ud9mWjUPgDrsAAwQSF51sm2hm1XofbU/4jkpGEsLFsZZxU+1DOg==} + ws@8.23.1: + resolution: {integrity: sha512-1rzWDSN0NOi3tpwgHsQExjWRoKUGtjCkJ2gZRaaRtzhYLboMytOI9pj9PU7yCgY37auqdd4OyLofZDbkeuZmPA==} engines: {node: '>=10.0.0'} peerDependencies: bufferutil: ^4.0.1 @@ -14635,7 +14628,7 @@ snapshots: dependencies: '@ai-sdk/provider': 4.0.18 '@ai-sdk/provider-utils': 5.0.49(zod@4.6.7) - cross-spawn: 7.0.6 + cross-spawn: 7.1.2 pkce-challenge: 5.0.1 zod: 4.6.7 @@ -15129,12 +15122,12 @@ snapshots: '@bcoe/v8-coverage@1.0.2': {} - '@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0)': + '@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0)': dependencies: - '@better-auth/utils': 0.5.0 - '@better-fetch/fetch': 1.3.2 + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 '@standard-schema/spec': 1.1.0 - better-call: 1.4.4(zod@4.6.7) + better-call: 1.4.6(zod@4.6.7) jose: 6.2.12 kysely: 0.29.5 nanostores: 1.5.0 @@ -15142,79 +15135,79 @@ snapshots: optionalDependencies: '@opentelemetry/api': 1.9.1 - '@better-auth/drizzle-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)': + '@better-auth/drizzle-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 - '@better-auth/kysely-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(kysely@0.29.5)': + '@better-auth/kysely-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(kysely@0.29.5)': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 optionalDependencies: kysely: 0.29.5 - '@better-auth/memory-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)': + '@better-auth/memory-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 - '@better-auth/mongo-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(mongodb@7.7.0(socks@2.8.9))': + '@better-auth/mongo-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(mongodb@7.7.0(socks@2.8.9))': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 optionalDependencies: mongodb: 7.7.0(socks@2.8.9) - '@better-auth/oauth-provider@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7))': + '@better-auth/oauth-provider@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7))': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 - '@better-fetch/fetch': 1.3.2 - better-auth: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) - better-call: 1.4.4(zod@4.6.7) + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 + better-auth: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + better-call: 1.4.6(zod@4.6.7) jose: 6.2.12 zod: 4.6.7 - '@better-auth/prisma-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)': + '@better-auth/prisma-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 - '@better-auth/scim@1.7.12(patch_hash=2743a6580305216c17b7ad0e4dfcdcb83f999f1194b4bd99412dbcae5a867d37)(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7))': + '@better-auth/scim@1.7.29(patch_hash=5ea058478500018a9800ea72010147eef408bb2c63db9590e27ca553ee8b1248)(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7))': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 '@noble/hashes': 2.4.0 - better-auth: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) - better-call: 1.4.4(zod@4.6.7) + better-auth: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + better-call: 1.4.6(zod@4.6.7) zod: 4.6.7 - '@better-auth/sso@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7))': + '@better-auth/sso@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7))': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 - '@better-fetch/fetch': 1.3.2 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 '@xmldom/xmldom': 0.9.12 - better-auth: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) - better-call: 1.4.4(zod@4.6.7) - fast-xml-parser: 5.12.0 + better-auth: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + better-call: 1.4.6(zod@4.6.7) + fast-xml-parser: 5.12.1 jose: 6.2.12 samlify: 2.13.1 tldts: 7.4.16 zod: 4.6.7 - '@better-auth/telemetry@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)': + '@better-auth/telemetry@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 - '@better-fetch/fetch': 1.3.2 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 - '@better-auth/utils@0.5.0': + '@better-auth/utils@0.5.1': dependencies: '@noble/hashes': 2.4.0 - '@better-fetch/fetch@1.3.2': {} + '@better-fetch/fetch@1.3.3': {} '@braintree/sanitize-url@7.1.2': {} @@ -15766,8 +15759,6 @@ snapshots: '@ioredis/commands@2.0.0': {} - '@isaacs/nonrecursive-glob-match@1.0.3': {} - '@isaacs/nonrecursive-glob-match@1.1.0': {} '@jitl/quickjs-ffi-types@0.32.0': {} @@ -15849,7 +15840,7 @@ snapshots: '@libsql/isomorphic-ws@0.1.5': dependencies: '@types/ws': 8.18.2 - ws: 8.22.0 + ws: 8.23.1 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -16017,14 +16008,14 @@ snapshots: '@microsoft/tsdoc@0.17.1': optional: true - '@modelcontextprotocol/sdk@1.32.1(zod@4.6.7)': + '@modelcontextprotocol/sdk@1.32.2(zod@4.6.7)': dependencies: '@hono/node-server': 2.1.8(hono@4.13.18) ajv: 8.20.0 ajv-formats: 3.0.1(ajv@8.20.0) content-type: 1.0.5 cors: 2.8.6 - cross-spawn: 7.0.6 + cross-spawn: 7.1.2 eventsource: 3.0.7 eventsource-parser: 3.1.1 express: 5.2.1 @@ -16166,7 +16157,7 @@ snapshots: get-package-type: 0.1.0 indent-string: 4.0.0 lilconfig: 3.1.3 - minimatch: 11.0.3 + minimatch: 11.0.9 semver: 7.8.5 string-width: 4.2.3 supports-color: 8.1.1 @@ -17043,7 +17034,7 @@ snapshots: dependencies: '@scalar/helpers': 0.16.4 pathe: 2.0.3 - undici: 8.12.3 + undici: 8.14.0 yaml: 2.9.1 '@scalar/openapi-types@0.9.8': {} @@ -17793,7 +17784,7 @@ snapshots: '@typescript-eslint/types': 8.74.0 '@typescript-eslint/visitor-keys': 8.74.0 debug: 4.4.3(supports-color@8.1.1) - minimatch: 11.0.3 + minimatch: 11.0.9 semver: 7.8.5 tinyglobby: 0.2.17 ts-api-utils: 2.5.0(typescript@6.0.3) @@ -18232,21 +18223,21 @@ snapshots: baseline-browser-mapping@2.11.32: {} - better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12): - dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/drizzle-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0) - '@better-auth/kysely-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(kysely@0.29.5) - '@better-auth/memory-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0) - '@better-auth/mongo-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(mongodb@7.7.0(socks@2.8.9)) - '@better-auth/prisma-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0) - '@better-auth/telemetry': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2) - '@better-auth/utils': 0.5.0 - '@better-fetch/fetch': 1.3.2 + better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12): + dependencies: + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/drizzle-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1) + '@better-auth/kysely-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(kysely@0.29.5) + '@better-auth/memory-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1) + '@better-auth/mongo-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(mongodb@7.7.0(socks@2.8.9)) + '@better-auth/prisma-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1) + '@better-auth/telemetry': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3) + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 '@noble/ciphers': 2.4.0 '@noble/hashes': 2.4.0 '@types/react': 19.3.0 - better-call: 1.4.4(zod@4.6.7) + better-call: 1.4.6(zod@4.6.7) defu: 6.1.7 jose: 6.2.12 kysely: 0.29.5 @@ -18264,12 +18255,12 @@ snapshots: transitivePeerDependencies: - '@opentelemetry/api' - better-call@1.4.4(zod@4.6.7): + better-call@1.4.6(zod@4.6.7): dependencies: - '@better-auth/utils': 0.5.0 - '@better-fetch/fetch': 1.3.2 + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 rou3: 0.9.2 - set-cookie-parser: 3.1.2 + set-cookie-parser: 3.2.1 optionalDependencies: zod: 4.6.7 @@ -18612,7 +18603,7 @@ snapshots: croner@10.0.1: {} - cross-spawn@7.0.6: + cross-spawn@7.1.2: dependencies: path-key: 3.1.1 shebang-command: 2.0.0 @@ -19070,7 +19061,7 @@ snapshots: '@humanwhocodes/retry': 0.4.3 '@types/estree': 1.0.9 ajv: 6.15.0 - cross-spawn: 7.0.6 + cross-spawn: 7.1.2 debug: 4.4.3(supports-color@8.1.1) escape-string-regexp: 4.0.0 eslint-scope: 9.1.2 @@ -19324,15 +19315,15 @@ snapshots: dependencies: fast-string-width: 3.0.2 - fast-xml-builder@1.3.1: + fast-xml-builder@1.3.2: dependencies: path-expression-matcher: 1.6.2 xml-naming: 0.3.0 - fast-xml-parser@5.12.0: + fast-xml-parser@5.12.1: dependencies: '@nodable/entities': 3.1.0 - fast-xml-builder: 1.3.1 + fast-xml-builder: 1.3.2 is-unsafe: 2.0.3 path-expression-matcher: 1.6.2 strnum: 2.5.1 @@ -19624,9 +19615,9 @@ snapshots: glob-to-regexp@0.4.1: {} - glob@14.0.3: + glob@14.0.7: dependencies: - minimatch: 11.0.3 + minimatch: 11.0.9 minipass: 7.1.3 path-scurry: 3.0.0 @@ -19658,7 +19649,7 @@ snapshots: buffer-image-size: 0.6.4 entities: 7.0.1 whatwg-mimetype: 3.0.0 - ws: 8.22.0 + ws: 8.23.1 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -20123,7 +20114,7 @@ snapshots: parse5: 8.0.1 saxes: 6.0.0 tough-cookie: 6.0.2 - undici: 8.12.3 + undici: 8.14.0 w3c-xmlserializer: 6.0.0 webidl-conversions: 8.0.1 whatwg-mimetype: 5.0.0 @@ -21047,11 +21038,6 @@ snapshots: mingo@7.2.4: {} - minimatch@11.0.3: - dependencies: - '@isaacs/nonrecursive-glob-match': 1.0.3 - brace-expansion: 5.0.12 - minimatch@11.0.9: dependencies: '@isaacs/nonrecursive-glob-match': 1.1.0 @@ -21291,7 +21277,7 @@ snapshots: dependencies: asn1: 0.2.6 - nodemailer@10.2.1: {} + nodemailer@10.6.2: {} normalize-path@3.0.0: {} @@ -22232,10 +22218,7 @@ snapshots: set-cookie-parser@2.7.2: {} - set-cookie-parser@3.1.2: {} - - set-cookie-parser@3.2.1: - optional: true + set-cookie-parser@3.2.1: {} set-value@2.0.1: dependencies: @@ -22804,7 +22787,7 @@ snapshots: undici@7.30.1: {} - undici@8.12.3: {} + undici@8.14.0: {} unified@11.0.5: dependencies: @@ -23199,7 +23182,7 @@ snapshots: wrappy@1.0.2: {} - ws@8.22.0: {} + ws@8.23.1: {} wsl-utils@0.4.0: dependencies: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index f87ab2bf1ec..21d8e5a6e08 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -78,7 +78,7 @@ onlyBuiltDependencies: # its bin/run.js never lets oclif register tsx. Retire the patch when a # tsx release resolves those three paths itself. Until then the same # exact-version rule as tsup's applies on every tsx bump. -# - @better-auth/scim@1.7.12: TEMPORARY, by maintainer ruling record +# - @better-auth/scim@1.7.29: TEMPORARY, by maintainer ruling record # 6845302116, which sets AGENTS.md's no-temporary-patches rule aside for # this one patch; no other better-auth patch is added here. The vendor's # setNamePart stored a name part and never recomposed name.formatted or @@ -98,7 +98,7 @@ patchedDependencies: # it was keyed unversioned in ui/package.json's ignored `pnpm` field. '@radix-ui/react-focus-scope@1.1.16': patches/@radix-ui__react-focus-scope.patch # Temporary, ruling record 6845302116; see the note above. - '@better-auth/scim@1.7.12': patches/@better-auth__scim@1.7.12.patch + '@better-auth/scim@1.7.29': patches/@better-auth__scim@1.7.29.patch # Type dependencies the packages below leave undeclared. Each one ships `.d.ts` # files that `import ... from 'react'` (react-router and next also import @@ -363,7 +363,7 @@ overrides: 'tar@>=2.0.0 <8.0.0': '^7.5.11' 'form-data@<5.0.0': '>=4.0.6' 'undici@>=7.23.0 <8.0.0': '^7.30.1' - 'undici@>=8.1.0 <9.0.0': '^8.12.2' + 'undici@>=8.1.0 <9.0.0': '^8.14.0' # better-auth family — kept on one line (see @better-auth/oauth-provider note). # Off the 1.7.0-rc.2 prerelease and onto the stable line (#3002). Bounds sit # at the MAJOR boundary, so a future advisory lift moves only the TARGET. @@ -406,8 +406,8 @@ overrides: # requires the declared range to be exact and to export what we import). # Move all eleven together, in one commit, or better-auth init throws and # every auth endpoint 500s. - 'better-auth@<2.0.0': '1.7.12' - '@better-auth/core@<2.0.0': '1.7.12' + 'better-auth@<2.0.0': '1.7.29' + '@better-auth/core@<2.0.0': '1.7.29' # scim carries the family's target — see the @better-auth/scim note # above. It was held at 1.7.1 EXACT, one deliberate step behind `^1.7.1`, # because `^1.7.1` then resolved scim to 1.7.2 while the installed family @@ -438,15 +438,15 @@ overrides: # a lift whose new version drops a symbol `plugin-auth` imports. # What stays true: the whole family still moves as ONE line, and a bump that # moves scim alone is still the mistake the #3653 ruling named. - '@better-auth/scim@<2.0.0': '1.7.12' - '@better-auth/oauth-provider@<2.0.0': '1.7.12' - '@better-auth/sso@<2.0.0': '1.7.12' - '@better-auth/drizzle-adapter@<2.0.0': '1.7.12' - '@better-auth/kysely-adapter@<2.0.0': '1.7.12' - '@better-auth/memory-adapter@<2.0.0': '1.7.12' - '@better-auth/mongo-adapter@<2.0.0': '1.7.12' - '@better-auth/prisma-adapter@<2.0.0': '1.7.12' - '@better-auth/telemetry@<2.0.0': '1.7.12' + '@better-auth/scim@<2.0.0': '1.7.29' + '@better-auth/oauth-provider@<2.0.0': '1.7.29' + '@better-auth/sso@<2.0.0': '1.7.29' + '@better-auth/drizzle-adapter@<2.0.0': '1.7.29' + '@better-auth/kysely-adapter@<2.0.0': '1.7.29' + '@better-auth/memory-adapter@<2.0.0': '1.7.29' + '@better-auth/mongo-adapter@<2.0.0': '1.7.29' + '@better-auth/prisma-adapter@<2.0.0': '1.7.29' + '@better-auth/telemetry@<2.0.0': '1.7.29' 'uuid@<12.0.0': '^11.1.1' 'postcss@<9.0.0': '^8.5.10' 'cookie@<0.8.0': '^0.7.0' @@ -831,3 +831,29 @@ overrides: # above is scoped to 8.x so objectui's 7.x line stays its own. 'body-parser@>=2.0.0 <3.0.0': '^2.4.0' 'happy-dom@>=17.0.0 <22.0.0': '^21.0.4' + # pnpm audit 2026-12-02 (#39068) — seven advisories on main 78148226, every + # one naming a fixed version, so this is the "take the fix" path + # osv-scanner.toml's header prescribes and NOT an exemption. + # Declared ranges, moved in the manifests rather than pinned here: + # fast-xml-parser GHSA-7cfw-w2rf-f3jc (fixed 5.12.1) — driver-odata + # ^5.12.1, and plugin-auth's exact pin 5.12.1, still the one copy + # @better-auth/sso resolves; glob GHSA-qxr8-q827-836c (fixed 14.0.6) — + # ^14.0.6 in metadata and in objectui's cli. + # Transitive-only, so floored here; each is a dedupe inside its + # dependents' declared ranges, and each selector sits at the major + # boundary per this block's header rule: + # ws GHSA-37g9-w4hg-h9qr (fixed 8.23.0) — one copy, 8.22.0, under + # @libsql/isomorphic-ws (driver-turso, knowledge-turso) and jsdom. + # cross-spawn GHSA-ghv9-86vm-4v8m (fixed 7.1.0; Windows batch files + # only) — one copy, 7.0.6, under eslint and other dev tooling. + # minimatch GHSA-cf2h-pxjq-68xw, GHSA-c859-jr93-m5j4 and + # GHSA-hqmv-qgp3-jx75 (fixed 11.0.8) — one flagged copy, 11.0.3, + # under @typescript-eslint/typescript-estree; the 11.x line sat + # outside the three minimatch selectors above. The api-extractor + # parent-scoped entry above (^11.0.9) already clears this floor. + # Same card, the patch-level refresh: the better-auth family target + # above moves 1.7.12 -> 1.7.29 (all eleven, one commit), and undici's + # 8.x target moves ^8.12.2 -> ^8.14.0 (jsdom's range admits it). + 'ws@>=8.0.0 <9.0.0': '^8.23.0' + 'cross-spawn@>=7.0.0 <8.0.0': '^7.1.0' + 'minimatch@>=11.0.0 <12.0.0': '^11.0.8' diff --git a/ui/packages/auth/package.json b/ui/packages/auth/package.json index 443395595b3..d3fa17ca0f7 100644 --- a/ui/packages/auth/package.json +++ b/ui/packages/auth/package.json @@ -40,7 +40,7 @@ "dependencies": { "@object-ui/types": "workspace:*", "@objectstack/spec": "workspace:^", - "better-auth": "1.7.12" + "better-auth": "1.7.29" }, "devDependencies": { "@types/react": "19.3.0", diff --git a/ui/packages/cli/package.json b/ui/packages/cli/package.json index 52889308afa..5d26b600877 100644 --- a/ui/packages/cli/package.json +++ b/ui/packages/cli/package.json @@ -65,7 +65,7 @@ "commander": "^15.0.0", "express": "^4.22.2", "express-rate-limit": "^8.6.2", - "glob": "^14.0.3", + "glob": "^14.0.6", "js-yaml": "^5.4.1", "jsonc-parser": "^3.3.1", "vite": "^8.2.1" From 425d08232c9c05e3f99601b7fcbff3a945adac69 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 07:05:50 +0000 Subject: [PATCH 02/20] chore(changeset): patch notes for the dependency refresh Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .changeset/39068-deps-refresh.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .changeset/39068-deps-refresh.md diff --git a/.changeset/39068-deps-refresh.md b/.changeset/39068-deps-refresh.md new file mode 100644 index 00000000000..82cfa59cb44 --- /dev/null +++ b/.changeset/39068-deps-refresh.md @@ -0,0 +1,28 @@ +--- +'@objectstack/driver-odata': patch +'@objectstack/metadata': patch +'@objectstack/plugin-auth': patch +'@objectstack/plugin-email': patch +'@objectstack/mcp': patch +'@objectstack/connector-mcp': patch +'@object-ui/auth': patch +'@object-ui/cli': patch +--- + +fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 + +Clause-②: no +Metadata-protocol: none + +A downstream install now resolves the fixed release of every dependency these packages declare that `pnpm audit` flagged: + +- `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. +- `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. + +The same release refreshes four runtime dependencies to their latest patch level: + +- `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. +- `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). +- `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). + +The transitive `ws`, `cross-spawn` and `minimatch` advisories, and `undici` 8.14.0, are fixed in this repository's own install only; nothing published declares them. No API or export of these packages changes. From 0083093f08b8d0ed39a57fa96c0092fb2d40fa5f Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 07:22:11 +0000 Subject: [PATCH 03/20] fix(deps): keep the better-auth family on 1.7.12 The 1.7.29 lift reds 48 plugin-auth tests (session revocation, verification and organization-role behaviour changed upstream), so it moves to its own reviewed edit; the advisory fixes and the undici, nodemailer and MCP SDK refresh stay. Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .changeset/39068-deps-refresh.md | 6 +- packages/plugins/plugin-auth/package.json | 10 +- ....patch => @better-auth__scim@1.7.12.patch} | 4 +- pnpm-lock.yaml | 263 ++++++++++-------- pnpm-workspace.yaml | 34 +-- ui/packages/auth/package.json | 2 +- 6 files changed, 172 insertions(+), 147 deletions(-) rename patches/{@better-auth__scim@1.7.29.patch => @better-auth__scim@1.7.12.patch} (90%) diff --git a/.changeset/39068-deps-refresh.md b/.changeset/39068-deps-refresh.md index 82cfa59cb44..2f31a1add36 100644 --- a/.changeset/39068-deps-refresh.md +++ b/.changeset/39068-deps-refresh.md @@ -5,11 +5,10 @@ '@objectstack/plugin-email': patch '@objectstack/mcp': patch '@objectstack/connector-mcp': patch -'@object-ui/auth': patch '@object-ui/cli': patch --- -fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 +fix(deps): the fixed releases for seven advisories Clause-②: no Metadata-protocol: none @@ -19,9 +18,8 @@ A downstream install now resolves the fixed release of every dependency these pa - `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. - `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. -The same release refreshes four runtime dependencies to their latest patch level: +The same release refreshes two runtime dependencies to their latest patch level: -- `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). diff --git a/packages/plugins/plugin-auth/package.json b/packages/plugins/plugin-auth/package.json index ed88a7c0e7f..e213f311ea5 100644 --- a/packages/plugins/plugin-auth/package.json +++ b/packages/plugins/plugin-auth/package.json @@ -48,10 +48,10 @@ "gen:test-typecheck-debt": "tsx ../../../scripts/check-test-typecheck.mts --update --package packages/plugins/plugin-auth --project tsconfig.test.json" }, "dependencies": { - "@better-auth/core": "1.7.29", - "@better-auth/oauth-provider": "1.7.29", - "@better-auth/scim": "1.7.29", - "@better-auth/sso": "1.7.29", + "@better-auth/core": "1.7.12", + "@better-auth/oauth-provider": "1.7.12", + "@better-auth/scim": "1.7.12", + "@better-auth/sso": "1.7.12", "@noble/hashes": "^2.4.0", "@objectstack/core": "workspace:*", "@objectstack/platform-objects": "workspace:*", @@ -60,7 +60,7 @@ "@objectstack/service-messaging": "workspace:*", "@objectstack/spec": "workspace:*", "@objectstack/types": "workspace:*", - "better-auth": "1.7.29", + "better-auth": "1.7.12", "fast-xml-parser": "5.12.1", "hono": "^4.13.16", "jose": "^6.2.12" diff --git a/patches/@better-auth__scim@1.7.29.patch b/patches/@better-auth__scim@1.7.12.patch similarity index 90% rename from patches/@better-auth__scim@1.7.29.patch rename to patches/@better-auth__scim@1.7.12.patch index 760841b27c1..5b4ac270543 100644 --- a/patches/@better-auth__scim@1.7.29.patch +++ b/patches/@better-auth__scim@1.7.12.patch @@ -16,10 +16,10 @@ The regression pin packages/plugins/plugin-auth/src/scim-name-recompose.test.ts stays. diff --git a/dist/index.mjs b/dist/index.mjs -index b7d3531180ff4d45fe5f6e66e584ed6b36a8cfe3..cd12b5bb9168c5d3491d23553e14d3cace84c56d 100644 +index 725b7ad56a19d2b4b9a3a5e9a79b9f665972a22e..f74ef80f51d8a7945872e6ebd151fa0da5de0c3c 100644 --- a/dist/index.mjs +++ b/dist/index.mjs -@@ -6024,7 +6024,10 @@ function composeName(state) { +@@ -6001,7 +6001,10 @@ function composeName(state) { return [state.givenName, state.familyName].filter(Boolean).join(" "); } function setNamePart(state, attribute, value) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 45753689315..b1eaca411de 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,17 +25,17 @@ overrides: form-data@<5.0.0: '>=4.0.6' undici@>=7.23.0 <8.0.0: ^7.30.1 undici@>=8.1.0 <9.0.0: ^8.14.0 - better-auth@<2.0.0: 1.7.29 - '@better-auth/core@<2.0.0': 1.7.29 - '@better-auth/scim@<2.0.0': 1.7.29 - '@better-auth/oauth-provider@<2.0.0': 1.7.29 - '@better-auth/sso@<2.0.0': 1.7.29 - '@better-auth/drizzle-adapter@<2.0.0': 1.7.29 - '@better-auth/kysely-adapter@<2.0.0': 1.7.29 - '@better-auth/memory-adapter@<2.0.0': 1.7.29 - '@better-auth/mongo-adapter@<2.0.0': 1.7.29 - '@better-auth/prisma-adapter@<2.0.0': 1.7.29 - '@better-auth/telemetry@<2.0.0': 1.7.29 + better-auth@<2.0.0: 1.7.12 + '@better-auth/core@<2.0.0': 1.7.12 + '@better-auth/scim@<2.0.0': 1.7.12 + '@better-auth/oauth-provider@<2.0.0': 1.7.12 + '@better-auth/sso@<2.0.0': 1.7.12 + '@better-auth/drizzle-adapter@<2.0.0': 1.7.12 + '@better-auth/kysely-adapter@<2.0.0': 1.7.12 + '@better-auth/memory-adapter@<2.0.0': 1.7.12 + '@better-auth/mongo-adapter@<2.0.0': 1.7.12 + '@better-auth/prisma-adapter@<2.0.0': 1.7.12 + '@better-auth/telemetry@<2.0.0': 1.7.12 uuid@<12.0.0: ^11.1.1 postcss@<9.0.0: ^8.5.10 cookie@<0.8.0: ^0.7.0 @@ -66,9 +66,9 @@ overrides: packageExtensionsChecksum: sha256-TylZCxIFIjBWkxvqZtA8J9KPRkbLMcmcjmntl2qf4PA= patchedDependencies: - '@better-auth/scim@1.7.29': - hash: 5ea058478500018a9800ea72010147eef408bb2c63db9590e27ca553ee8b1248 - path: patches/@better-auth__scim@1.7.29.patch + '@better-auth/scim@1.7.12': + hash: 2743a6580305216c17b7ad0e4dfcdcb83f999f1194b4bd99412dbcae5a867d37 + path: patches/@better-auth__scim@1.7.12.patch '@radix-ui/react-focus-scope@1.1.16': hash: 6512888b2c7cb4b20942ed027faf189e038db25e70452175d36020f0dd09fe7d path: patches/@radix-ui__react-focus-scope.patch @@ -2052,17 +2052,17 @@ importers: packages/plugins/plugin-auth: dependencies: '@better-auth/core': - specifier: 1.7.29 - version: 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + specifier: 1.7.12 + version: 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) '@better-auth/oauth-provider': - specifier: 1.7.29 - version: 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7)) + specifier: 1.7.12 + version: 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7)) '@better-auth/scim': - specifier: 1.7.29 - version: 1.7.29(patch_hash=5ea058478500018a9800ea72010147eef408bb2c63db9590e27ca553ee8b1248)(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7)) + specifier: 1.7.12 + version: 1.7.12(patch_hash=2743a6580305216c17b7ad0e4dfcdcb83f999f1194b4bd99412dbcae5a867d37)(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7)) '@better-auth/sso': - specifier: 1.7.29 - version: 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7)) + specifier: 1.7.12 + version: 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7)) '@noble/hashes': specifier: ^2.4.0 version: 2.4.0 @@ -2088,8 +2088,8 @@ importers: specifier: workspace:* version: link:../../types better-auth: - specifier: 1.7.29 - version: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + specifier: 1.7.12 + version: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) fast-xml-parser: specifier: 5.12.1 version: 5.12.1 @@ -4519,8 +4519,8 @@ importers: specifier: workspace:^ version: link:../../../packages/spec better-auth: - specifier: 1.7.29 - version: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + specifier: 1.7.12 + version: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) devDependencies: '@types/react': specifier: 19.3.0 @@ -6887,13 +6887,13 @@ packages: resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} engines: {node: '>=18'} - '@better-auth/core@1.7.29': - resolution: {integrity: sha512-zLDC4nUtBz7t3uPM+TG6OukkALYQYi+IxWjBNX59ynSiyHomXLj0q2dDe6k61y3mFzhSAdDYhjZ/0D0W/LGcyw==} + '@better-auth/core@1.7.12': + resolution: {integrity: sha512-SUStBGHJ13KnSO6+7U/1DSlfuOtln4jtOrFZqzQtxZVHZIrAoMjwHNGitlF+s7hvKbuC3Z14xjnqfLLqIqGfxw==} peerDependencies: '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.3 + '@better-fetch/fetch': 1.3.2 '@opentelemetry/api': ^1.9.0 - better-call: ~1.4.5 + better-call: 1.4.4 jose: ^6.1.0 kysely: ^0.28.5 || ^0.29.0 nanostores: ^1.0.1 @@ -6901,55 +6901,55 @@ packages: '@opentelemetry/api': optional: true - '@better-auth/drizzle-adapter@1.7.29': - resolution: {integrity: sha512-CiIWG+ahxEhVAKgOVHoclzPFrDEGJhTOPk/CvHRCnFS/06bVdk/bTXFd4U5NUfjeXnaA5W2A4A2+zOMCR9walg==} + '@better-auth/drizzle-adapter@1.7.12': + resolution: {integrity: sha512-Qzoyuf05aK01Pc0k3EXv8Xj3XCT2m2dCWc5HoB7x+xX6N3Pm2eQsca+UIArsJcbuNEWWP3L51oIebnBoHJ5DTw==} peerDependencies: - '@better-auth/core': 1.7.29 + '@better-auth/core': 1.7.12 '@better-auth/utils': ^0.4.2 || ^0.5.0 drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0 peerDependenciesMeta: drizzle-orm: optional: true - '@better-auth/kysely-adapter@1.7.29': - resolution: {integrity: sha512-jPYkt84dAvsVTyBSEQ8o7hyYnpXxhvsa53AP8sRzvxC1M9BrBWFr+2YQposy+4SgfcPVJCbwlLhTl8YN8pAGqg==} + '@better-auth/kysely-adapter@1.7.12': + resolution: {integrity: sha512-1PaFXktLv4n3DmrGbPaCj5SsvcT40NnWw7NLua5/J1+8/A051N5ZzqOwJifXEIQX5k6NdwvmymwDQxKytduEAQ==} peerDependencies: - '@better-auth/core': 1.7.29 + '@better-auth/core': 1.7.12 '@better-auth/utils': ^0.4.2 || ^0.5.0 kysely: ^0.28.17 || ^0.29.0 peerDependenciesMeta: kysely: optional: true - '@better-auth/memory-adapter@1.7.29': - resolution: {integrity: sha512-uMqyezB5wNuB+E0MjDQwh8XxnJgrYB3kw4eDIWCeFDhxwEI/Vxop8Qz8MIu31BN21ivP01FAwuuTvegmRVRjuQ==} + '@better-auth/memory-adapter@1.7.12': + resolution: {integrity: sha512-glaDwXzDptnddHqRuu7fj47FAssUcOzLNgdlTGJoEPrspkX69x2vnXwgAzNuApjZI21WLtPH/rQ6CN+DQGybPA==} peerDependencies: - '@better-auth/core': 1.7.29 + '@better-auth/core': 1.7.12 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-auth/mongo-adapter@1.7.29': - resolution: {integrity: sha512-oTxEGVpqkGT1maS49+5l66+w1Ly9Qxe0rR1hZxM+j6csgBR/9jhhB4L+9MTUp7HensdFsFrahs8YJZ0AF4DSjw==} + '@better-auth/mongo-adapter@1.7.12': + resolution: {integrity: sha512-HKV4sgYSw/Gdt9AuHlESMkiKL72SWdGweDy1Wsyxoh06BpG7aNu4aSJ7marNpMdKZteyRbxWWqQkA9ediA8qFw==} peerDependencies: - '@better-auth/core': 1.7.29 + '@better-auth/core': 1.7.12 '@better-auth/utils': ^0.4.2 || ^0.5.0 mongodb: ^6.0.0 || ^7.0.0 peerDependenciesMeta: mongodb: optional: true - '@better-auth/oauth-provider@1.7.29': - resolution: {integrity: sha512-uY+jUZ+0uKclgaqH0TWbb9/h/O0Pa1S+h6gGH6NFMwF0yVard8kSjAPJcm6px4ox0OHRS215wPX1XBt4oxyjkA==} + '@better-auth/oauth-provider@1.7.12': + resolution: {integrity: sha512-XzjlApbWtuuoEK63CUNHbgs8zpr3AjlQeGbT1vWEPqvOvI2z4lOaIvIsogomfqFAgj/jgB0zMGYjt0MRyW0T7w==} peerDependencies: - '@better-auth/core': 1.7.29 + '@better-auth/core': 1.7.12 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.3 - better-auth: 1.7.29 - better-call: ~1.4.5 + '@better-fetch/fetch': 1.3.2 + better-auth: 1.7.12 + better-call: 1.4.4 - '@better-auth/prisma-adapter@1.7.29': - resolution: {integrity: sha512-0hslQE28c8CF3p1hIf1D/vVBQOm8DO40JLPV4uGLXSZlB1wqmuLOBOZ7wbPiw2NHggJm8WBRbO1WJ9JYL7ROYQ==} + '@better-auth/prisma-adapter@1.7.12': + resolution: {integrity: sha512-FZRX6ORbwhDmeYE1Tl0IPtUn8v3BlVFgbJxDnm/DCNHxuFRf+0t4HfddUgYeYehHFR8aSDsdYX44fEFWM9877w==} peerDependencies: - '@better-auth/core': 1.7.29 + '@better-auth/core': 1.7.12 '@better-auth/utils': ^0.4.2 || ^0.5.0 '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 @@ -6959,33 +6959,39 @@ packages: prisma: optional: true - '@better-auth/scim@1.7.29': - resolution: {integrity: sha512-nvbCqJxdwzCYGeGqwOdiPoeCpjTt+JVouff6XdSYhJKgHlKMuGpvNphG0GStGfze6EUXdaPetmHE2kD6GscrOA==} + '@better-auth/scim@1.7.12': + resolution: {integrity: sha512-mmDGQr9tu6z0mUhuQ5zGlutU0wmg3zujuP2uz02FqVil7RdEsHuYI6THeahF2EQEmCQ4E241SI8Lp94OruQw3A==} peerDependencies: - '@better-auth/core': 1.7.29 + '@better-auth/core': 1.7.12 '@better-auth/utils': ^0.4.2 || ^0.5.0 - better-auth: 1.7.29 - better-call: ~1.4.5 + better-auth: 1.7.12 + better-call: 1.4.4 - '@better-auth/sso@1.7.29': - resolution: {integrity: sha512-/vfyGiReXogI0d2FplnRmc9esJy5/I1AYicy41xdZiEHhpQwm+CMcgzVcsQ/u/gWvg4oY2iyS+3P80biK3p4dg==} + '@better-auth/sso@1.7.12': + resolution: {integrity: sha512-fxUD9+MjNRhuT+nVtFgqPvWAvwWJVacuIijdf4x2nCHqR44xfFgYYWK2iB6vOiin9Qxof9kTPKvRl7ZCJHdwFQ==} peerDependencies: - '@better-auth/core': 1.7.29 + '@better-auth/core': 1.7.12 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.3 - better-auth: 1.7.29 - better-call: ~1.4.5 + '@better-fetch/fetch': 1.3.2 + better-auth: 1.7.12 + better-call: 1.4.4 - '@better-auth/telemetry@1.7.29': - resolution: {integrity: sha512-0XVUsU6Gr+v0QaF6VK9Lu+EOn/fMLCWR/YvCXSZvoqimn7+8WDXNdJcfREXCIaLTnDDmS8a+lFNNzBVQt+3r2w==} + '@better-auth/telemetry@1.7.12': + resolution: {integrity: sha512-DaDkKNnI99vKGGbWq9KJg2uYeaOjsK9nIBw9T2m2KG/RkxpvQRjYkZ00++up2bZQkR5pB1nukGbplza3UJG/Xg==} peerDependencies: - '@better-auth/core': 1.7.29 + '@better-auth/core': 1.7.12 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.3 + '@better-fetch/fetch': 1.3.2 + + '@better-auth/utils@0.5.0': + resolution: {integrity: sha512-BL8W4EfIZFwlu0r54m3v1ztjDhu6dDe/amLTm0xybmbZaNgYUqhD3SjpAsnq0q8YD6/ki4iwIgxJNLP/N3TxiA==} '@better-auth/utils@0.5.1': resolution: {integrity: sha512-WETqw5vQ52uQ/xwWR4E8rTgT6fDEr/wnS+otDNkBCa/69281FCF32OKDdQUcahMCnjsvqXBNiEvAQHFB0EVRRg==} + '@better-fetch/fetch@1.3.2': + resolution: {integrity: sha512-Gs7n99b5tqUC6cQAPbV0uED3IraHB6xQbHLQ/C3l7ZFafHScOx9pQ+DYmP5blbLFShVWLqxNUlI9wi4xU/X+ow==} + '@better-fetch/fetch@1.3.3': resolution: {integrity: sha512-U6SlDt/GUWtK2JAxS/NhdoYTEim+EL1G5byz2TUj83KjLZBUpYzb5SmX0aXaCnbGkAjFKnV/o/0+cyXMbEcqqg==} @@ -10118,8 +10124,8 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - better-auth@1.7.29: - resolution: {integrity: sha512-UuLwvDBfg3dNMNfV8lubu13LNLhLtHMZbUVAn9nkTQ/a2pk+Keto+U7ZXbiP3k98GZ+fYWc/HX8Rv81iA+wGvg==} + better-auth@1.7.12: + resolution: {integrity: sha512-f1fEG0QdTslzbmFA+vOGFFW/XXCWkG4kBxLeH9n1vp1otTH9+ZzV6EJ6797GStWeiYYgS5Vnt9xqE12KwSyAAw==} peerDependencies: '@lynx-js/react': '*' '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 @@ -10178,8 +10184,8 @@ packages: vue: optional: true - better-call@1.4.6: - resolution: {integrity: sha512-tJ3lkMFeQProwiuZiQApwgVmYmBfXM4sAP7HxMsnAFtl4NWZhamG+RGoMNgHwGYkmcB+3eWyo3vgt4sWUUSdQA==} + better-call@1.4.4: + resolution: {integrity: sha512-Gq4XdGFy4dmUxFEAX2nj0ycFcFbD9ZWh8YROouZoyXeF1M11TpYbplk0pDByTFF8Wz+MYa6W9052c9m7dD+mfw==} peerDependencies: zod: ^4.0.0 peerDependenciesMeta: @@ -15122,12 +15128,12 @@ snapshots: '@bcoe/v8-coverage@1.0.2': {} - '@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0)': + '@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0)': dependencies: - '@better-auth/utils': 0.5.1 - '@better-fetch/fetch': 1.3.3 + '@better-auth/utils': 0.5.0 + '@better-fetch/fetch': 1.3.2 '@standard-schema/spec': 1.1.0 - better-call: 1.4.6(zod@4.6.7) + better-call: 1.4.4(zod@4.6.7) jose: 6.2.12 kysely: 0.29.5 nanostores: 1.5.0 @@ -15135,78 +15141,97 @@ snapshots: optionalDependencies: '@opentelemetry/api': 1.9.1 - '@better-auth/drizzle-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)': + '@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0)': dependencies: - '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.2 + '@standard-schema/spec': 1.1.0 + better-call: 1.4.4(zod@4.6.7) + jose: 6.2.12 + kysely: 0.29.5 + nanostores: 1.5.0 + zod: 4.6.7 + optionalDependencies: + '@opentelemetry/api': 1.9.1 - '@better-auth/kysely-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(kysely@0.29.5)': + '@better-auth/drizzle-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)': dependencies: - '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.1 + '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.0 + + '@better-auth/kysely-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(kysely@0.29.5)': + dependencies: + '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.0 optionalDependencies: kysely: 0.29.5 - '@better-auth/memory-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)': + '@better-auth/memory-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)': dependencies: - '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.1 + '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.0 - '@better-auth/mongo-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(mongodb@7.7.0(socks@2.8.9))': + '@better-auth/mongo-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(mongodb@7.7.0(socks@2.8.9))': dependencies: - '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.1 + '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.0 optionalDependencies: mongodb: 7.7.0(socks@2.8.9) - '@better-auth/oauth-provider@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7))': + '@better-auth/oauth-provider@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7))': dependencies: - '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) '@better-auth/utils': 0.5.1 - '@better-fetch/fetch': 1.3.3 - better-auth: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) - better-call: 1.4.6(zod@4.6.7) + '@better-fetch/fetch': 1.3.2 + better-auth: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + better-call: 1.4.4(zod@4.6.7) jose: 6.2.12 zod: 4.6.7 - '@better-auth/prisma-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)': + '@better-auth/prisma-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)': dependencies: - '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.1 + '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.0 - '@better-auth/scim@1.7.29(patch_hash=5ea058478500018a9800ea72010147eef408bb2c63db9590e27ca553ee8b1248)(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7))': + '@better-auth/scim@1.7.12(patch_hash=2743a6580305216c17b7ad0e4dfcdcb83f999f1194b4bd99412dbcae5a867d37)(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7))': dependencies: - '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) '@better-auth/utils': 0.5.1 '@noble/hashes': 2.4.0 - better-auth: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) - better-call: 1.4.6(zod@4.6.7) + better-auth: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + better-call: 1.4.4(zod@4.6.7) zod: 4.6.7 - '@better-auth/sso@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7))': + '@better-auth/sso@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7))': dependencies: - '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) '@better-auth/utils': 0.5.1 - '@better-fetch/fetch': 1.3.3 + '@better-fetch/fetch': 1.3.2 '@xmldom/xmldom': 0.9.12 - better-auth: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) - better-call: 1.4.6(zod@4.6.7) + better-auth: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + better-call: 1.4.4(zod@4.6.7) fast-xml-parser: 5.12.1 jose: 6.2.12 samlify: 2.13.1 tldts: 7.4.16 zod: 4.6.7 - '@better-auth/telemetry@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)': + '@better-auth/telemetry@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)': dependencies: - '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.1 - '@better-fetch/fetch': 1.3.3 + '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.0 + '@better-fetch/fetch': 1.3.2 + + '@better-auth/utils@0.5.0': + dependencies: + '@noble/hashes': 2.4.0 '@better-auth/utils@0.5.1': dependencies: '@noble/hashes': 2.4.0 + '@better-fetch/fetch@1.3.2': {} + '@better-fetch/fetch@1.3.3': {} '@braintree/sanitize-url@7.1.2': {} @@ -18223,21 +18248,21 @@ snapshots: baseline-browser-mapping@2.11.32: {} - better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12): - dependencies: - '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/drizzle-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1) - '@better-auth/kysely-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(kysely@0.29.5) - '@better-auth/memory-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1) - '@better-auth/mongo-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(mongodb@7.7.0(socks@2.8.9)) - '@better-auth/prisma-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1) - '@better-auth/telemetry': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3) - '@better-auth/utils': 0.5.1 - '@better-fetch/fetch': 1.3.3 + better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12): + dependencies: + '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/drizzle-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0) + '@better-auth/kysely-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(kysely@0.29.5) + '@better-auth/memory-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0) + '@better-auth/mongo-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(mongodb@7.7.0(socks@2.8.9)) + '@better-auth/prisma-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0) + '@better-auth/telemetry': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2) + '@better-auth/utils': 0.5.0 + '@better-fetch/fetch': 1.3.2 '@noble/ciphers': 2.4.0 '@noble/hashes': 2.4.0 '@types/react': 19.3.0 - better-call: 1.4.6(zod@4.6.7) + better-call: 1.4.4(zod@4.6.7) defu: 6.1.7 jose: 6.2.12 kysely: 0.29.5 @@ -18255,7 +18280,7 @@ snapshots: transitivePeerDependencies: - '@opentelemetry/api' - better-call@1.4.6(zod@4.6.7): + better-call@1.4.4(zod@4.6.7): dependencies: '@better-auth/utils': 0.5.1 '@better-fetch/fetch': 1.3.3 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 21d8e5a6e08..fa9fe470527 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -78,7 +78,7 @@ onlyBuiltDependencies: # its bin/run.js never lets oclif register tsx. Retire the patch when a # tsx release resolves those three paths itself. Until then the same # exact-version rule as tsup's applies on every tsx bump. -# - @better-auth/scim@1.7.29: TEMPORARY, by maintainer ruling record +# - @better-auth/scim@1.7.12: TEMPORARY, by maintainer ruling record # 6845302116, which sets AGENTS.md's no-temporary-patches rule aside for # this one patch; no other better-auth patch is added here. The vendor's # setNamePart stored a name part and never recomposed name.formatted or @@ -98,7 +98,7 @@ patchedDependencies: # it was keyed unversioned in ui/package.json's ignored `pnpm` field. '@radix-ui/react-focus-scope@1.1.16': patches/@radix-ui__react-focus-scope.patch # Temporary, ruling record 6845302116; see the note above. - '@better-auth/scim@1.7.29': patches/@better-auth__scim@1.7.29.patch + '@better-auth/scim@1.7.12': patches/@better-auth__scim@1.7.12.patch # Type dependencies the packages below leave undeclared. Each one ships `.d.ts` # files that `import ... from 'react'` (react-router and next also import @@ -406,8 +406,8 @@ overrides: # requires the declared range to be exact and to export what we import). # Move all eleven together, in one commit, or better-auth init throws and # every auth endpoint 500s. - 'better-auth@<2.0.0': '1.7.29' - '@better-auth/core@<2.0.0': '1.7.29' + 'better-auth@<2.0.0': '1.7.12' + '@better-auth/core@<2.0.0': '1.7.12' # scim carries the family's target — see the @better-auth/scim note # above. It was held at 1.7.1 EXACT, one deliberate step behind `^1.7.1`, # because `^1.7.1` then resolved scim to 1.7.2 while the installed family @@ -438,15 +438,15 @@ overrides: # a lift whose new version drops a symbol `plugin-auth` imports. # What stays true: the whole family still moves as ONE line, and a bump that # moves scim alone is still the mistake the #3653 ruling named. - '@better-auth/scim@<2.0.0': '1.7.29' - '@better-auth/oauth-provider@<2.0.0': '1.7.29' - '@better-auth/sso@<2.0.0': '1.7.29' - '@better-auth/drizzle-adapter@<2.0.0': '1.7.29' - '@better-auth/kysely-adapter@<2.0.0': '1.7.29' - '@better-auth/memory-adapter@<2.0.0': '1.7.29' - '@better-auth/mongo-adapter@<2.0.0': '1.7.29' - '@better-auth/prisma-adapter@<2.0.0': '1.7.29' - '@better-auth/telemetry@<2.0.0': '1.7.29' + '@better-auth/scim@<2.0.0': '1.7.12' + '@better-auth/oauth-provider@<2.0.0': '1.7.12' + '@better-auth/sso@<2.0.0': '1.7.12' + '@better-auth/drizzle-adapter@<2.0.0': '1.7.12' + '@better-auth/kysely-adapter@<2.0.0': '1.7.12' + '@better-auth/memory-adapter@<2.0.0': '1.7.12' + '@better-auth/mongo-adapter@<2.0.0': '1.7.12' + '@better-auth/prisma-adapter@<2.0.0': '1.7.12' + '@better-auth/telemetry@<2.0.0': '1.7.12' 'uuid@<12.0.0': '^11.1.1' 'postcss@<9.0.0': '^8.5.10' 'cookie@<0.8.0': '^0.7.0' @@ -851,9 +851,11 @@ overrides: # under @typescript-eslint/typescript-estree; the 11.x line sat # outside the three minimatch selectors above. The api-extractor # parent-scoped entry above (^11.0.9) already clears this floor. - # Same card, the patch-level refresh: the better-auth family target - # above moves 1.7.12 -> 1.7.29 (all eleven, one commit), and undici's - # 8.x target moves ^8.12.2 -> ^8.14.0 (jsdom's range admits it). + # Same card, the patch-level refresh: undici's 8.x target moves + # ^8.12.2 -> ^8.14.0 (jsdom's range admits it). The better-auth family + # stays on 1.7.12: 1.7.29 reds 48 plugin-auth tests (behaviour changes + # in session revocation, verification and organization roles), so that + # lift is its own reviewed edit. 'ws@>=8.0.0 <9.0.0': '^8.23.0' 'cross-spawn@>=7.0.0 <8.0.0': '^7.1.0' 'minimatch@>=11.0.0 <12.0.0': '^11.0.8' diff --git a/ui/packages/auth/package.json b/ui/packages/auth/package.json index d3fa17ca0f7..443395595b3 100644 --- a/ui/packages/auth/package.json +++ b/ui/packages/auth/package.json @@ -40,7 +40,7 @@ "dependencies": { "@object-ui/types": "workspace:*", "@objectstack/spec": "workspace:^", - "better-auth": "1.7.29" + "better-auth": "1.7.12" }, "devDependencies": { "@types/react": "19.3.0", From 43fc955b321e01ede6d87ae8ec22667430f36eed Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 07:47:30 +0000 Subject: [PATCH 04/20] docs(deps): name the real ws and cross-spawn dependents in the override note Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- pnpm-workspace.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index fa9fe470527..10369524144 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -843,9 +843,10 @@ overrides: # dependents' declared ranges, and each selector sits at the major # boundary per this block's header rule: # ws GHSA-37g9-w4hg-h9qr (fixed 8.23.0) — one copy, 8.22.0, under - # @libsql/isomorphic-ws (driver-turso, knowledge-turso) and jsdom. + # @libsql/isomorphic-ws (driver-turso, knowledge-turso) and happy-dom. # cross-spawn GHSA-ghv9-86vm-4v8m (fixed 7.1.0; Windows batch files - # only) — one copy, 7.0.6, under eslint and other dev tooling. + # only) — one copy, 7.0.6, under eslint, @modelcontextprotocol/sdk + # and @ai-sdk/mcp (their stdio transports spawn through it). # minimatch GHSA-cf2h-pxjq-68xw, GHSA-c859-jr93-m5j4 and # GHSA-hqmv-qgp3-jx75 (fixed 11.0.8) — one flagged copy, 11.0.3, # under @typescript-eslint/typescript-estree; the 11.x line sat From 8542d60cfcd958c94a31402b1df52fe065cff26a Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 09:09:56 +0000 Subject: [PATCH 05/20] fix(deps): lift the better-auth family to 1.7.29 again Reverts the hold-back: the maintainer chose to land the better-auth 1.7.29 lift together with the plugin-auth adaptation in this PR. Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .changeset/39068-deps-refresh.md | 6 +- packages/plugins/plugin-auth/package.json | 10 +- ....patch => @better-auth__scim@1.7.29.patch} | 4 +- pnpm-lock.yaml | 263 ++++++++---------- pnpm-workspace.yaml | 34 ++- ui/packages/auth/package.json | 2 +- 6 files changed, 147 insertions(+), 172 deletions(-) rename patches/{@better-auth__scim@1.7.12.patch => @better-auth__scim@1.7.29.patch} (90%) diff --git a/.changeset/39068-deps-refresh.md b/.changeset/39068-deps-refresh.md index 2f31a1add36..82cfa59cb44 100644 --- a/.changeset/39068-deps-refresh.md +++ b/.changeset/39068-deps-refresh.md @@ -5,10 +5,11 @@ '@objectstack/plugin-email': patch '@objectstack/mcp': patch '@objectstack/connector-mcp': patch +'@object-ui/auth': patch '@object-ui/cli': patch --- -fix(deps): the fixed releases for seven advisories +fix(deps): the fixed releases for seven advisories, and better-auth 1.7.29 Clause-②: no Metadata-protocol: none @@ -18,8 +19,9 @@ A downstream install now resolves the fixed release of every dependency these pa - `fast-xml-parser` 5.12.1 (GHSA-7cfw-w2rf-f3jc): `@objectstack/driver-odata` declares `^5.12.1`; `@objectstack/plugin-auth` keeps its exact pin, now `5.12.1`, the same release `@better-auth/sso` resolves. - `glob` 14.0.6 (GHSA-qxr8-q827-836c): `@objectstack/metadata` and `@object-ui/cli` declare `^14.0.6`. -The same release refreshes two runtime dependencies to their latest patch level: +The same release refreshes four runtime dependencies to their latest patch level: +- `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). diff --git a/packages/plugins/plugin-auth/package.json b/packages/plugins/plugin-auth/package.json index e213f311ea5..ed88a7c0e7f 100644 --- a/packages/plugins/plugin-auth/package.json +++ b/packages/plugins/plugin-auth/package.json @@ -48,10 +48,10 @@ "gen:test-typecheck-debt": "tsx ../../../scripts/check-test-typecheck.mts --update --package packages/plugins/plugin-auth --project tsconfig.test.json" }, "dependencies": { - "@better-auth/core": "1.7.12", - "@better-auth/oauth-provider": "1.7.12", - "@better-auth/scim": "1.7.12", - "@better-auth/sso": "1.7.12", + "@better-auth/core": "1.7.29", + "@better-auth/oauth-provider": "1.7.29", + "@better-auth/scim": "1.7.29", + "@better-auth/sso": "1.7.29", "@noble/hashes": "^2.4.0", "@objectstack/core": "workspace:*", "@objectstack/platform-objects": "workspace:*", @@ -60,7 +60,7 @@ "@objectstack/service-messaging": "workspace:*", "@objectstack/spec": "workspace:*", "@objectstack/types": "workspace:*", - "better-auth": "1.7.12", + "better-auth": "1.7.29", "fast-xml-parser": "5.12.1", "hono": "^4.13.16", "jose": "^6.2.12" diff --git a/patches/@better-auth__scim@1.7.12.patch b/patches/@better-auth__scim@1.7.29.patch similarity index 90% rename from patches/@better-auth__scim@1.7.12.patch rename to patches/@better-auth__scim@1.7.29.patch index 5b4ac270543..760841b27c1 100644 --- a/patches/@better-auth__scim@1.7.12.patch +++ b/patches/@better-auth__scim@1.7.29.patch @@ -16,10 +16,10 @@ The regression pin packages/plugins/plugin-auth/src/scim-name-recompose.test.ts stays. diff --git a/dist/index.mjs b/dist/index.mjs -index 725b7ad56a19d2b4b9a3a5e9a79b9f665972a22e..f74ef80f51d8a7945872e6ebd151fa0da5de0c3c 100644 +index b7d3531180ff4d45fe5f6e66e584ed6b36a8cfe3..cd12b5bb9168c5d3491d23553e14d3cace84c56d 100644 --- a/dist/index.mjs +++ b/dist/index.mjs -@@ -6001,7 +6001,10 @@ function composeName(state) { +@@ -6024,7 +6024,10 @@ function composeName(state) { return [state.givenName, state.familyName].filter(Boolean).join(" "); } function setNamePart(state, attribute, value) { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b1eaca411de..45753689315 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -25,17 +25,17 @@ overrides: form-data@<5.0.0: '>=4.0.6' undici@>=7.23.0 <8.0.0: ^7.30.1 undici@>=8.1.0 <9.0.0: ^8.14.0 - better-auth@<2.0.0: 1.7.12 - '@better-auth/core@<2.0.0': 1.7.12 - '@better-auth/scim@<2.0.0': 1.7.12 - '@better-auth/oauth-provider@<2.0.0': 1.7.12 - '@better-auth/sso@<2.0.0': 1.7.12 - '@better-auth/drizzle-adapter@<2.0.0': 1.7.12 - '@better-auth/kysely-adapter@<2.0.0': 1.7.12 - '@better-auth/memory-adapter@<2.0.0': 1.7.12 - '@better-auth/mongo-adapter@<2.0.0': 1.7.12 - '@better-auth/prisma-adapter@<2.0.0': 1.7.12 - '@better-auth/telemetry@<2.0.0': 1.7.12 + better-auth@<2.0.0: 1.7.29 + '@better-auth/core@<2.0.0': 1.7.29 + '@better-auth/scim@<2.0.0': 1.7.29 + '@better-auth/oauth-provider@<2.0.0': 1.7.29 + '@better-auth/sso@<2.0.0': 1.7.29 + '@better-auth/drizzle-adapter@<2.0.0': 1.7.29 + '@better-auth/kysely-adapter@<2.0.0': 1.7.29 + '@better-auth/memory-adapter@<2.0.0': 1.7.29 + '@better-auth/mongo-adapter@<2.0.0': 1.7.29 + '@better-auth/prisma-adapter@<2.0.0': 1.7.29 + '@better-auth/telemetry@<2.0.0': 1.7.29 uuid@<12.0.0: ^11.1.1 postcss@<9.0.0: ^8.5.10 cookie@<0.8.0: ^0.7.0 @@ -66,9 +66,9 @@ overrides: packageExtensionsChecksum: sha256-TylZCxIFIjBWkxvqZtA8J9KPRkbLMcmcjmntl2qf4PA= patchedDependencies: - '@better-auth/scim@1.7.12': - hash: 2743a6580305216c17b7ad0e4dfcdcb83f999f1194b4bd99412dbcae5a867d37 - path: patches/@better-auth__scim@1.7.12.patch + '@better-auth/scim@1.7.29': + hash: 5ea058478500018a9800ea72010147eef408bb2c63db9590e27ca553ee8b1248 + path: patches/@better-auth__scim@1.7.29.patch '@radix-ui/react-focus-scope@1.1.16': hash: 6512888b2c7cb4b20942ed027faf189e038db25e70452175d36020f0dd09fe7d path: patches/@radix-ui__react-focus-scope.patch @@ -2052,17 +2052,17 @@ importers: packages/plugins/plugin-auth: dependencies: '@better-auth/core': - specifier: 1.7.12 - version: 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + specifier: 1.7.29 + version: 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) '@better-auth/oauth-provider': - specifier: 1.7.12 - version: 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7)) + specifier: 1.7.29 + version: 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7)) '@better-auth/scim': - specifier: 1.7.12 - version: 1.7.12(patch_hash=2743a6580305216c17b7ad0e4dfcdcb83f999f1194b4bd99412dbcae5a867d37)(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7)) + specifier: 1.7.29 + version: 1.7.29(patch_hash=5ea058478500018a9800ea72010147eef408bb2c63db9590e27ca553ee8b1248)(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7)) '@better-auth/sso': - specifier: 1.7.12 - version: 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7)) + specifier: 1.7.29 + version: 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7)) '@noble/hashes': specifier: ^2.4.0 version: 2.4.0 @@ -2088,8 +2088,8 @@ importers: specifier: workspace:* version: link:../../types better-auth: - specifier: 1.7.12 - version: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + specifier: 1.7.29 + version: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) fast-xml-parser: specifier: 5.12.1 version: 5.12.1 @@ -4519,8 +4519,8 @@ importers: specifier: workspace:^ version: link:../../../packages/spec better-auth: - specifier: 1.7.12 - version: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + specifier: 1.7.29 + version: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) devDependencies: '@types/react': specifier: 19.3.0 @@ -6887,13 +6887,13 @@ packages: resolution: {integrity: sha512-6zABk/ECA/QYSCQ1NGiVwwbQerUCZ+TQbp64Q3AgmfNvurHH0j8TtXa1qbShXA6qqkpAj4V5W8pP6mLe1mcMqA==} engines: {node: '>=18'} - '@better-auth/core@1.7.12': - resolution: {integrity: sha512-SUStBGHJ13KnSO6+7U/1DSlfuOtln4jtOrFZqzQtxZVHZIrAoMjwHNGitlF+s7hvKbuC3Z14xjnqfLLqIqGfxw==} + '@better-auth/core@1.7.29': + resolution: {integrity: sha512-zLDC4nUtBz7t3uPM+TG6OukkALYQYi+IxWjBNX59ynSiyHomXLj0q2dDe6k61y3mFzhSAdDYhjZ/0D0W/LGcyw==} peerDependencies: '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.2 + '@better-fetch/fetch': 1.3.3 '@opentelemetry/api': ^1.9.0 - better-call: 1.4.4 + better-call: ~1.4.5 jose: ^6.1.0 kysely: ^0.28.5 || ^0.29.0 nanostores: ^1.0.1 @@ -6901,55 +6901,55 @@ packages: '@opentelemetry/api': optional: true - '@better-auth/drizzle-adapter@1.7.12': - resolution: {integrity: sha512-Qzoyuf05aK01Pc0k3EXv8Xj3XCT2m2dCWc5HoB7x+xX6N3Pm2eQsca+UIArsJcbuNEWWP3L51oIebnBoHJ5DTw==} + '@better-auth/drizzle-adapter@1.7.29': + resolution: {integrity: sha512-CiIWG+ahxEhVAKgOVHoclzPFrDEGJhTOPk/CvHRCnFS/06bVdk/bTXFd4U5NUfjeXnaA5W2A4A2+zOMCR9walg==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 drizzle-orm: ^0.45.2 || >=1.0.0-rc.1 <2.0.0 peerDependenciesMeta: drizzle-orm: optional: true - '@better-auth/kysely-adapter@1.7.12': - resolution: {integrity: sha512-1PaFXktLv4n3DmrGbPaCj5SsvcT40NnWw7NLua5/J1+8/A051N5ZzqOwJifXEIQX5k6NdwvmymwDQxKytduEAQ==} + '@better-auth/kysely-adapter@1.7.29': + resolution: {integrity: sha512-jPYkt84dAvsVTyBSEQ8o7hyYnpXxhvsa53AP8sRzvxC1M9BrBWFr+2YQposy+4SgfcPVJCbwlLhTl8YN8pAGqg==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 kysely: ^0.28.17 || ^0.29.0 peerDependenciesMeta: kysely: optional: true - '@better-auth/memory-adapter@1.7.12': - resolution: {integrity: sha512-glaDwXzDptnddHqRuu7fj47FAssUcOzLNgdlTGJoEPrspkX69x2vnXwgAzNuApjZI21WLtPH/rQ6CN+DQGybPA==} + '@better-auth/memory-adapter@1.7.29': + resolution: {integrity: sha512-uMqyezB5wNuB+E0MjDQwh8XxnJgrYB3kw4eDIWCeFDhxwEI/Vxop8Qz8MIu31BN21ivP01FAwuuTvegmRVRjuQ==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-auth/mongo-adapter@1.7.12': - resolution: {integrity: sha512-HKV4sgYSw/Gdt9AuHlESMkiKL72SWdGweDy1Wsyxoh06BpG7aNu4aSJ7marNpMdKZteyRbxWWqQkA9ediA8qFw==} + '@better-auth/mongo-adapter@1.7.29': + resolution: {integrity: sha512-oTxEGVpqkGT1maS49+5l66+w1Ly9Qxe0rR1hZxM+j6csgBR/9jhhB4L+9MTUp7HensdFsFrahs8YJZ0AF4DSjw==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 mongodb: ^6.0.0 || ^7.0.0 peerDependenciesMeta: mongodb: optional: true - '@better-auth/oauth-provider@1.7.12': - resolution: {integrity: sha512-XzjlApbWtuuoEK63CUNHbgs8zpr3AjlQeGbT1vWEPqvOvI2z4lOaIvIsogomfqFAgj/jgB0zMGYjt0MRyW0T7w==} + '@better-auth/oauth-provider@1.7.29': + resolution: {integrity: sha512-uY+jUZ+0uKclgaqH0TWbb9/h/O0Pa1S+h6gGH6NFMwF0yVard8kSjAPJcm6px4ox0OHRS215wPX1XBt4oxyjkA==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.2 - better-auth: 1.7.12 - better-call: 1.4.4 + '@better-fetch/fetch': 1.3.3 + better-auth: 1.7.29 + better-call: ~1.4.5 - '@better-auth/prisma-adapter@1.7.12': - resolution: {integrity: sha512-FZRX6ORbwhDmeYE1Tl0IPtUn8v3BlVFgbJxDnm/DCNHxuFRf+0t4HfddUgYeYehHFR8aSDsdYX44fEFWM9877w==} + '@better-auth/prisma-adapter@1.7.29': + resolution: {integrity: sha512-0hslQE28c8CF3p1hIf1D/vVBQOm8DO40JLPV4uGLXSZlB1wqmuLOBOZ7wbPiw2NHggJm8WBRbO1WJ9JYL7ROYQ==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 prisma: ^5.0.0 || ^6.0.0 || ^7.0.0 @@ -6959,39 +6959,33 @@ packages: prisma: optional: true - '@better-auth/scim@1.7.12': - resolution: {integrity: sha512-mmDGQr9tu6z0mUhuQ5zGlutU0wmg3zujuP2uz02FqVil7RdEsHuYI6THeahF2EQEmCQ4E241SI8Lp94OruQw3A==} + '@better-auth/scim@1.7.29': + resolution: {integrity: sha512-nvbCqJxdwzCYGeGqwOdiPoeCpjTt+JVouff6XdSYhJKgHlKMuGpvNphG0GStGfze6EUXdaPetmHE2kD6GscrOA==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 - better-auth: 1.7.12 - better-call: 1.4.4 + better-auth: 1.7.29 + better-call: ~1.4.5 - '@better-auth/sso@1.7.12': - resolution: {integrity: sha512-fxUD9+MjNRhuT+nVtFgqPvWAvwWJVacuIijdf4x2nCHqR44xfFgYYWK2iB6vOiin9Qxof9kTPKvRl7ZCJHdwFQ==} + '@better-auth/sso@1.7.29': + resolution: {integrity: sha512-/vfyGiReXogI0d2FplnRmc9esJy5/I1AYicy41xdZiEHhpQwm+CMcgzVcsQ/u/gWvg4oY2iyS+3P80biK3p4dg==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.2 - better-auth: 1.7.12 - better-call: 1.4.4 + '@better-fetch/fetch': 1.3.3 + better-auth: 1.7.29 + better-call: ~1.4.5 - '@better-auth/telemetry@1.7.12': - resolution: {integrity: sha512-DaDkKNnI99vKGGbWq9KJg2uYeaOjsK9nIBw9T2m2KG/RkxpvQRjYkZ00++up2bZQkR5pB1nukGbplza3UJG/Xg==} + '@better-auth/telemetry@1.7.29': + resolution: {integrity: sha512-0XVUsU6Gr+v0QaF6VK9Lu+EOn/fMLCWR/YvCXSZvoqimn7+8WDXNdJcfREXCIaLTnDDmS8a+lFNNzBVQt+3r2w==} peerDependencies: - '@better-auth/core': 1.7.12 + '@better-auth/core': 1.7.29 '@better-auth/utils': ^0.4.2 || ^0.5.0 - '@better-fetch/fetch': 1.3.2 - - '@better-auth/utils@0.5.0': - resolution: {integrity: sha512-BL8W4EfIZFwlu0r54m3v1ztjDhu6dDe/amLTm0xybmbZaNgYUqhD3SjpAsnq0q8YD6/ki4iwIgxJNLP/N3TxiA==} + '@better-fetch/fetch': 1.3.3 '@better-auth/utils@0.5.1': resolution: {integrity: sha512-WETqw5vQ52uQ/xwWR4E8rTgT6fDEr/wnS+otDNkBCa/69281FCF32OKDdQUcahMCnjsvqXBNiEvAQHFB0EVRRg==} - '@better-fetch/fetch@1.3.2': - resolution: {integrity: sha512-Gs7n99b5tqUC6cQAPbV0uED3IraHB6xQbHLQ/C3l7ZFafHScOx9pQ+DYmP5blbLFShVWLqxNUlI9wi4xU/X+ow==} - '@better-fetch/fetch@1.3.3': resolution: {integrity: sha512-U6SlDt/GUWtK2JAxS/NhdoYTEim+EL1G5byz2TUj83KjLZBUpYzb5SmX0aXaCnbGkAjFKnV/o/0+cyXMbEcqqg==} @@ -10124,8 +10118,8 @@ packages: engines: {node: '>=6.0.0'} hasBin: true - better-auth@1.7.12: - resolution: {integrity: sha512-f1fEG0QdTslzbmFA+vOGFFW/XXCWkG4kBxLeH9n1vp1otTH9+ZzV6EJ6797GStWeiYYgS5Vnt9xqE12KwSyAAw==} + better-auth@1.7.29: + resolution: {integrity: sha512-UuLwvDBfg3dNMNfV8lubu13LNLhLtHMZbUVAn9nkTQ/a2pk+Keto+U7ZXbiP3k98GZ+fYWc/HX8Rv81iA+wGvg==} peerDependencies: '@lynx-js/react': '*' '@prisma/client': ^5.0.0 || ^6.0.0 || ^7.0.0 @@ -10184,8 +10178,8 @@ packages: vue: optional: true - better-call@1.4.4: - resolution: {integrity: sha512-Gq4XdGFy4dmUxFEAX2nj0ycFcFbD9ZWh8YROouZoyXeF1M11TpYbplk0pDByTFF8Wz+MYa6W9052c9m7dD+mfw==} + better-call@1.4.6: + resolution: {integrity: sha512-tJ3lkMFeQProwiuZiQApwgVmYmBfXM4sAP7HxMsnAFtl4NWZhamG+RGoMNgHwGYkmcB+3eWyo3vgt4sWUUSdQA==} peerDependencies: zod: ^4.0.0 peerDependenciesMeta: @@ -15128,25 +15122,12 @@ snapshots: '@bcoe/v8-coverage@1.0.2': {} - '@better-auth/core@1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0)': - dependencies: - '@better-auth/utils': 0.5.0 - '@better-fetch/fetch': 1.3.2 - '@standard-schema/spec': 1.1.0 - better-call: 1.4.4(zod@4.6.7) - jose: 6.2.12 - kysely: 0.29.5 - nanostores: 1.5.0 - zod: 4.6.7 - optionalDependencies: - '@opentelemetry/api': 1.9.1 - - '@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0)': + '@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0)': dependencies: '@better-auth/utils': 0.5.1 - '@better-fetch/fetch': 1.3.2 + '@better-fetch/fetch': 1.3.3 '@standard-schema/spec': 1.1.0 - better-call: 1.4.4(zod@4.6.7) + better-call: 1.4.6(zod@4.6.7) jose: 6.2.12 kysely: 0.29.5 nanostores: 1.5.0 @@ -15154,84 +15135,78 @@ snapshots: optionalDependencies: '@opentelemetry/api': 1.9.1 - '@better-auth/drizzle-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)': + '@better-auth/drizzle-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 - '@better-auth/kysely-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(kysely@0.29.5)': + '@better-auth/kysely-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(kysely@0.29.5)': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 optionalDependencies: kysely: 0.29.5 - '@better-auth/memory-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)': + '@better-auth/memory-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 - '@better-auth/mongo-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(mongodb@7.7.0(socks@2.8.9))': + '@better-auth/mongo-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(mongodb@7.7.0(socks@2.8.9))': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 optionalDependencies: mongodb: 7.7.0(socks@2.8.9) - '@better-auth/oauth-provider@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7))': + '@better-auth/oauth-provider@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7))': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) '@better-auth/utils': 0.5.1 - '@better-fetch/fetch': 1.3.2 - better-auth: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) - better-call: 1.4.4(zod@4.6.7) + '@better-fetch/fetch': 1.3.3 + better-auth: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + better-call: 1.4.6(zod@4.6.7) jose: 6.2.12 zod: 4.6.7 - '@better-auth/prisma-adapter@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)': + '@better-auth/prisma-adapter@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 - '@better-auth/scim@1.7.12(patch_hash=2743a6580305216c17b7ad0e4dfcdcb83f999f1194b4bd99412dbcae5a867d37)(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7))': + '@better-auth/scim@1.7.29(patch_hash=5ea058478500018a9800ea72010147eef408bb2c63db9590e27ca553ee8b1248)(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7))': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) '@better-auth/utils': 0.5.1 '@noble/hashes': 2.4.0 - better-auth: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) - better-call: 1.4.4(zod@4.6.7) + better-auth: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + better-call: 1.4.6(zod@4.6.7) zod: 4.6.7 - '@better-auth/sso@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.4(zod@4.6.7))': + '@better-auth/sso@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12))(better-call@1.4.6(zod@4.6.7))': dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) '@better-auth/utils': 0.5.1 - '@better-fetch/fetch': 1.3.2 + '@better-fetch/fetch': 1.3.3 '@xmldom/xmldom': 0.9.12 - better-auth: 1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) - better-call: 1.4.4(zod@4.6.7) + better-auth: 1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12) + better-call: 1.4.6(zod@4.6.7) fast-xml-parser: 5.12.1 jose: 6.2.12 samlify: 2.13.1 tldts: 7.4.16 zod: 4.6.7 - '@better-auth/telemetry@1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)': - dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/utils': 0.5.0 - '@better-fetch/fetch': 1.3.2 - - '@better-auth/utils@0.5.0': + '@better-auth/telemetry@1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)': dependencies: - '@noble/hashes': 2.4.0 + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 '@better-auth/utils@0.5.1': dependencies: '@noble/hashes': 2.4.0 - '@better-fetch/fetch@1.3.2': {} - '@better-fetch/fetch@1.3.3': {} '@braintree/sanitize-url@7.1.2': {} @@ -18248,21 +18223,21 @@ snapshots: baseline-browser-mapping@2.11.32: {} - better-auth@1.7.12(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12): - dependencies: - '@better-auth/core': 1.7.12(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) - '@better-auth/drizzle-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0) - '@better-auth/kysely-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(kysely@0.29.5) - '@better-auth/memory-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0) - '@better-auth/mongo-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(mongodb@7.7.0(socks@2.8.9)) - '@better-auth/prisma-adapter': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0) - '@better-auth/telemetry': 1.7.12(@better-auth/core@1.7.12(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.2)(@opentelemetry/api@1.9.1)(better-call@1.4.4(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.0)(@better-fetch/fetch@1.3.2) - '@better-auth/utils': 0.5.0 - '@better-fetch/fetch': 1.3.2 + better-auth@1.7.29(@opentelemetry/api@1.9.1)(@types/react@19.3.0)(mongodb@7.7.0(socks@2.8.9))(mysql2@3.24.6(@types/node@26.6.5))(next@16.4.6(@opentelemetry/api@1.9.1)(@playwright/test@1.63.0)(@types/node@26.6.5)(@types/react-dom@19.3.0(@types/react@19.3.0))(@types/react@19.3.0)(react-dom@19.3.0(react@19.3.0))(react@19.3.0))(pg@8.23.1)(react-dom@19.3.0(react@19.3.0))(react@19.3.0)(svelte@5.57.3(@typescript-eslint/types@8.74.0))(vitest@4.1.12): + dependencies: + '@better-auth/core': 1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0) + '@better-auth/drizzle-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1) + '@better-auth/kysely-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(kysely@0.29.5) + '@better-auth/memory-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1) + '@better-auth/mongo-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(mongodb@7.7.0(socks@2.8.9)) + '@better-auth/prisma-adapter': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1) + '@better-auth/telemetry': 1.7.29(@better-auth/core@1.7.29(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3)(@opentelemetry/api@1.9.1)(better-call@1.4.6(zod@4.6.7))(jose@6.2.12)(kysely@0.29.5)(nanostores@1.5.0))(@better-auth/utils@0.5.1)(@better-fetch/fetch@1.3.3) + '@better-auth/utils': 0.5.1 + '@better-fetch/fetch': 1.3.3 '@noble/ciphers': 2.4.0 '@noble/hashes': 2.4.0 '@types/react': 19.3.0 - better-call: 1.4.4(zod@4.6.7) + better-call: 1.4.6(zod@4.6.7) defu: 6.1.7 jose: 6.2.12 kysely: 0.29.5 @@ -18280,7 +18255,7 @@ snapshots: transitivePeerDependencies: - '@opentelemetry/api' - better-call@1.4.4(zod@4.6.7): + better-call@1.4.6(zod@4.6.7): dependencies: '@better-auth/utils': 0.5.1 '@better-fetch/fetch': 1.3.3 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 10369524144..bec06967979 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -78,7 +78,7 @@ onlyBuiltDependencies: # its bin/run.js never lets oclif register tsx. Retire the patch when a # tsx release resolves those three paths itself. Until then the same # exact-version rule as tsup's applies on every tsx bump. -# - @better-auth/scim@1.7.12: TEMPORARY, by maintainer ruling record +# - @better-auth/scim@1.7.29: TEMPORARY, by maintainer ruling record # 6845302116, which sets AGENTS.md's no-temporary-patches rule aside for # this one patch; no other better-auth patch is added here. The vendor's # setNamePart stored a name part and never recomposed name.formatted or @@ -98,7 +98,7 @@ patchedDependencies: # it was keyed unversioned in ui/package.json's ignored `pnpm` field. '@radix-ui/react-focus-scope@1.1.16': patches/@radix-ui__react-focus-scope.patch # Temporary, ruling record 6845302116; see the note above. - '@better-auth/scim@1.7.12': patches/@better-auth__scim@1.7.12.patch + '@better-auth/scim@1.7.29': patches/@better-auth__scim@1.7.29.patch # Type dependencies the packages below leave undeclared. Each one ships `.d.ts` # files that `import ... from 'react'` (react-router and next also import @@ -406,8 +406,8 @@ overrides: # requires the declared range to be exact and to export what we import). # Move all eleven together, in one commit, or better-auth init throws and # every auth endpoint 500s. - 'better-auth@<2.0.0': '1.7.12' - '@better-auth/core@<2.0.0': '1.7.12' + 'better-auth@<2.0.0': '1.7.29' + '@better-auth/core@<2.0.0': '1.7.29' # scim carries the family's target — see the @better-auth/scim note # above. It was held at 1.7.1 EXACT, one deliberate step behind `^1.7.1`, # because `^1.7.1` then resolved scim to 1.7.2 while the installed family @@ -438,15 +438,15 @@ overrides: # a lift whose new version drops a symbol `plugin-auth` imports. # What stays true: the whole family still moves as ONE line, and a bump that # moves scim alone is still the mistake the #3653 ruling named. - '@better-auth/scim@<2.0.0': '1.7.12' - '@better-auth/oauth-provider@<2.0.0': '1.7.12' - '@better-auth/sso@<2.0.0': '1.7.12' - '@better-auth/drizzle-adapter@<2.0.0': '1.7.12' - '@better-auth/kysely-adapter@<2.0.0': '1.7.12' - '@better-auth/memory-adapter@<2.0.0': '1.7.12' - '@better-auth/mongo-adapter@<2.0.0': '1.7.12' - '@better-auth/prisma-adapter@<2.0.0': '1.7.12' - '@better-auth/telemetry@<2.0.0': '1.7.12' + '@better-auth/scim@<2.0.0': '1.7.29' + '@better-auth/oauth-provider@<2.0.0': '1.7.29' + '@better-auth/sso@<2.0.0': '1.7.29' + '@better-auth/drizzle-adapter@<2.0.0': '1.7.29' + '@better-auth/kysely-adapter@<2.0.0': '1.7.29' + '@better-auth/memory-adapter@<2.0.0': '1.7.29' + '@better-auth/mongo-adapter@<2.0.0': '1.7.29' + '@better-auth/prisma-adapter@<2.0.0': '1.7.29' + '@better-auth/telemetry@<2.0.0': '1.7.29' 'uuid@<12.0.0': '^11.1.1' 'postcss@<9.0.0': '^8.5.10' 'cookie@<0.8.0': '^0.7.0' @@ -852,11 +852,9 @@ overrides: # under @typescript-eslint/typescript-estree; the 11.x line sat # outside the three minimatch selectors above. The api-extractor # parent-scoped entry above (^11.0.9) already clears this floor. - # Same card, the patch-level refresh: undici's 8.x target moves - # ^8.12.2 -> ^8.14.0 (jsdom's range admits it). The better-auth family - # stays on 1.7.12: 1.7.29 reds 48 plugin-auth tests (behaviour changes - # in session revocation, verification and organization roles), so that - # lift is its own reviewed edit. + # Same card, the patch-level refresh: the better-auth family target + # above moves 1.7.12 -> 1.7.29 (all eleven, one commit), and undici's + # 8.x target moves ^8.12.2 -> ^8.14.0 (jsdom's range admits it). 'ws@>=8.0.0 <9.0.0': '^8.23.0' 'cross-spawn@>=7.0.0 <8.0.0': '^7.1.0' 'minimatch@>=11.0.0 <12.0.0': '^11.0.8' diff --git a/ui/packages/auth/package.json b/ui/packages/auth/package.json index 443395595b3..d3fa17ca0f7 100644 --- a/ui/packages/auth/package.json +++ b/ui/packages/auth/package.json @@ -40,7 +40,7 @@ "dependencies": { "@object-ui/types": "workspace:*", "@objectstack/spec": "workspace:^", - "better-auth": "1.7.12" + "better-auth": "1.7.29" }, "devDependencies": { "@types/react": "19.3.0", From 376f22c830026a6e58d43bdeb7aa748d68b365e5 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 09:14:00 +0000 Subject: [PATCH 06/20] fix(plugin-auth): follow better-auth 1.7.29's role-list reading on the owner guard and keep the blank invitation role refused Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .../src/auth-manager-before-hook.ts | 7 ++ .../src/auth-manager-organization-plugin.ts | 5 +- .../src/invite-role-not-found-code.ts | 31 +++++++ .../src/member-role-canonical.test.ts | 80 ++++++++++++++----- .../src/remove-member-permission-guard.ts | 52 +++++++----- 5 files changed, 135 insertions(+), 40 deletions(-) diff --git a/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts b/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts index db2b3f35914..3dda54a0ee7 100644 --- a/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts +++ b/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts @@ -99,6 +99,7 @@ import { refuseSsoDiscoveryHostNotPublic, ssoDiscoveryCompanionContext } from '. import { declareSsoDiscoveryReadsOf, judgeSsoDiscoveryUrl } from './sso-discovery-egress.js'; import { snapshotRoleChangeGrants, UPDATE_MEMBER_ROLE_PATH } from './role-change-granted-set.js'; import { refuseVisitorResendWithoutLiveTransport } from './visitor-verification-resend.js'; +import { refuseBlankInvitationRoleAtTheDoor } from './invite-role-not-found-code.js'; /** * Every client an `/oauth2/authorize` request names, for the ADR-0069 D5.1 @@ -981,6 +982,12 @@ export async function globalBeforeHook( }); } + // ── #29158: a blank invitation role, refused on the raw body ── + // better-auth 1.7.29 normalizes the role list before + // `beforeCreateInvitation` sees it, so the blank-entry refusal is asked + // here, ahead of that normalization (`invite-role-not-found-code.ts`). + await refuseBlankInvitationRoleAtTheDoor(ctx); + // ── #27862: read the member's org-admin grants before a role change ── // The after hook compares them with what the change left held and names // the set it granted (see `role-change-granted-set.ts`). A read only: it diff --git a/packages/plugins/plugin-auth/src/auth-manager-organization-plugin.ts b/packages/plugins/plugin-auth/src/auth-manager-organization-plugin.ts index 5761479eac3..8ebc6df9543 100644 --- a/packages/plugins/plugin-auth/src/auth-manager-organization-plugin.ts +++ b/packages/plugins/plugin-auth/src/auth-manager-organization-plugin.ts @@ -361,7 +361,10 @@ export async function buildOrganizationPlugin(this: OrganizationPluginHost) { // written. better-auth's own check drops empty entries, so without // this the invitation is stored with `role: ''` and, under a wall, its // acceptance writes a membership with no organization role. Refused, - // never defaulted to `member`. + // never defaulted to `member`. Since better-auth 1.7.29 the route + // normalizes the role list before this hook runs, so the door-level + // refusal in the `before` hook (`refuseBlankInvitationRoleAtTheDoor`) + // answers first; this arm stays as the second line. const blankRole = blankInvitationRoleRefusal(invitation?.role); if (blankRole) { const { APIError } = await import('better-auth/api'); diff --git a/packages/plugins/plugin-auth/src/invite-role-not-found-code.ts b/packages/plugins/plugin-auth/src/invite-role-not-found-code.ts index c959912624f..d6c2a2745ef 100644 --- a/packages/plugins/plugin-auth/src/invite-role-not-found-code.ts +++ b/packages/plugins/plugin-auth/src/invite-role-not-found-code.ts @@ -107,3 +107,34 @@ export function blankInvitationRoleRefusal(requestedRole: unknown): InviteRoleRe `the invitee joins with; a blank role, or an empty entry in a role list, names no role.`, }; } + +/** + * The blank-role refusal, asked at the door: `POST /organization/invite-member` + * in the global `before` hook, on the RAW requested role. + * + * Since better-auth 1.7.29 the invite route normalizes the role list before + * anything else reads it (`parseRoleList` / `parseRoles`, + * `plugins/organization/roles.mjs`): an empty entry is dropped, so `"member,"` + * reaches `beforeCreateInvitation` as `"member"` and the whole-value blanks + * (`""`, `" "`, `[]`) are refused by the vendor itself with its bare + * `Role not found`. The `beforeCreateInvitation` arm therefore no longer sees + * a blank entry at all. This keeps the published answer of this door + * unchanged — every blank entry refused `400 ROLE_NOT_FOUND` with the + * sentence that says the role is empty, before any row exists — by reading + * the body the vendor has not yet normalized. + * + * Only a signed-in caller is answered here: without a session the request + * falls through, and the vendor answers it the way it answers any + * unauthenticated invite. A session read that fails falls through as well. + */ +export async function refuseBlankInvitationRoleAtTheDoor(ctx: any): Promise { + if (ctx?.path !== INVITE_MEMBER_PATH) return; + const body = ctx?.body; + if (!body || typeof body !== 'object' || !('role' in body)) return; + const refusal = blankInvitationRoleRefusal((body as { role?: unknown }).role); + if (!refusal) return; + const { APIError, getSessionFromCtx } = await import('better-auth/api'); + const session = await getSessionFromCtx(ctx).catch(() => null); + if (!session) return; + throw new APIError('BAD_REQUEST', { message: refusal.message, code: refusal.code }); +} diff --git a/packages/plugins/plugin-auth/src/member-role-canonical.test.ts b/packages/plugins/plugin-auth/src/member-role-canonical.test.ts index 5b907d05ddd..755778e110f 100644 --- a/packages/plugins/plugin-auth/src/member-role-canonical.test.ts +++ b/packages/plugins/plugin-auth/src/member-role-canonical.test.ts @@ -32,6 +32,14 @@ * 2. `updateMemberRole` — `const isUpdatingCreator = * toBeUpdatedMember.role.split(",").includes(creatorRole);` (`:288`) * 3. `organization/leave` — `if (member.role.split(",").includes(creatorRole))` (`:420`) + * + * Re-read 2026-12-02 out of better-auth 1.7.29: all three branches now read the + * column through the vendor's `parseRoleList` (`plugins/organization/roles.mjs`: + * split on commas, trim each name, drop empty ones) — `:192`, `:286` and `:418`. + * So upstream closed the WHITESPACE half of the disagreement; the CASE half is + * still open (no lower-casing anywhere), and the canonicalisation still closes + * it. The predicate is now assembled from the vendor's `parseRoleList` source + * plus the branch's own call, both extracted from the installed files. */ import { describe, it, expect, beforeEach } from 'vitest'; @@ -89,14 +97,29 @@ const require_ = createRequire(join(PKG, 'probe.js')); const VENDOR_DIST = dirname(require_.resolve('better-auth')); const CRUD_MEMBERS = join(VENDOR_DIST, 'plugins', 'organization', 'routes', 'crud-members.mjs'); const VENDOR_SOURCE = readFileSync(CRUD_MEMBERS, 'utf8'); +const ROLES_FILE = join(VENDOR_DIST, 'plugins', 'organization', 'roles.mjs'); +const ROLES_SOURCE = readFileSync(ROLES_FILE, 'utf8'); + +/** The vendor's `parseRoleList` function, as source text, out of the installed file. */ +const PARSE_ROLE_LIST_SOURCE = (() => { + const match = ROLES_SOURCE.match(/function parseRoleList\(roles\) \{[\s\S]*?\n\}/); + if (!match) { + throw new Error( + `[#8317] could not find parseRoleList in ${ROLES_FILE}. better-auth changed how the ` + + `organization plugin reads a role column — re-read it and update this extraction.`, + ); + } + return match[0]; +})(); interface VendorBranch { /** The route whose owner-test this is. */ branch: string; /** - * Matches the branch's owner-test in the vendor source. Capture groups - * concatenate, after a leading `role`, into a JS expression over one role - * value — so the predicate under test is assembled from vendor BYTES. + * Matches the branch's owner-test in the vendor source. Group 1 is the + * function the branch reads the column through and group 2 the test applied + * to its result; they assemble, around `role`, into a JS expression over one + * role value — so the predicate under test is assembled from vendor BYTES. */ pattern: RegExp; } @@ -104,18 +127,18 @@ interface VendorBranch { const VENDOR_BRANCHES: readonly VendorBranch[] = [ { branch: 'removeMember — only an owner may remove an owner', - // `const roles = toBeRemovedMember.role.split(",");` … `if (roles.includes(creatorRole)) {` + // `const roles = parseRoleList(toBeRemovedMember.role);` … `if (roles.includes(creatorRole)) {` pattern: - /const roles = toBeRemovedMember\.role(\.split\(","\));[\s\S]{0,200}?if \(roles(\.includes\(creatorRole\))\)/, + /const roles = (parseRoleList)\(toBeRemovedMember\.role\);[\s\S]{0,200}?if \(roles(\.includes\(creatorRole\))\)/, }, { branch: 'updateMemberRole — creator protection', pattern: - /const isUpdatingCreator = toBeUpdatedMember\.role(\.split\(","\)\.includes\(creatorRole\));()/, + /const isUpdatingCreator = (parseRoleList)\(toBeUpdatedMember\.role\)(\.includes\(creatorRole\));/, }, { branch: 'organization/leave — last-owner count', - pattern: /\n\tif \(member\.role(\.split\(","\)\.includes\(creatorRole\))\) \{()/, + pattern: /\n\tif \((parseRoleList)\(member\.role\)(\.includes\(creatorRole\))\) \{/, }, ]; @@ -144,8 +167,8 @@ function vendorOwnerTest(branch: VendorBranch): (role: unknown, creatorRole: str `it must identify exactly one branch.`, ); } - const expression = `role${match[1] ?? ''}${match[2] ?? ''}`; - return new Function('role', 'creatorRole', `return ${expression};`) as ( + const expression = `${match[1]}(role)${match[2]}`; + return new Function('role', 'creatorRole', `${PARSE_ROLE_LIST_SOURCE}\nreturn ${expression};`) as ( role: unknown, creatorRole: string, ) => boolean; @@ -164,20 +187,36 @@ describe('#8317 — the vendor predicates this card is about', () => { } }); - it('still reads the column raw — no trim, no lower-case (the defect itself)', () => { + it('trims each role name but still does not lower-case it (the defect that remains)', () => { for (const branch of VENDOR_BRANCHES) { const source = VENDOR_SOURCE.match(branch.pattern)?.[0] ?? ''; - expect(source, branch.branch).toContain('split(",")'); + expect(source, branch.branch).toContain('parseRoleList('); expect(source.toLowerCase(), branch.branch).not.toContain('tolowercase'); } + expect(PARSE_ROLE_LIST_SOURCE).toContain('.trim()'); + expect(PARSE_ROLE_LIST_SOURCE.toLowerCase()).not.toContain('tolowercase'); }); }); /** The spellings that produce the inversion, and the canonical one. */ const NON_CANONICAL = ['Owner', ' owner', 'OWNER', 'owner ', ' Owner '] as const; +/** The ones that still invert on better-auth 1.7.29: a case difference. */ +const CASE_VARIANTS = ['Owner', 'OWNER', ' Owner '] as const; +/** The ones better-auth 1.7.29 closed itself: padding only, read through `parseRoleList`. */ +const PADDING_ONLY = [' owner', 'owner '] as const; describe('#8317 — the inversion, reproduced against the real vendor predicates', () => { - it.each([...NON_CANONICAL])( + it.each([...PADDING_ONLY])( + 'stored %o: since better-auth 1.7.29 both sides already read an owner (the vendor trims)', + (stored) => { + expect(orgRoleGrade(stored)).toBe(3); + for (const branch of VENDOR_BRANCHES) { + expect(vendorOwnerTest(branch)(stored, CREATOR_ROLE), branch.branch).toBe(true); + } + }, + ); + + it.each([...CASE_VARIANTS])( 'stored %o: our ladder says owner, all three vendor branches say plain member', (stored) => { // ObjectStack's side — the #5942 grade ladder. @@ -544,17 +583,18 @@ describe('#8317 — the one-off convergent pass', () => { // --------------------------------------------------------------------------- describe('#8317 keeps #8289 decoupled', () => { - it('leaves the remove-member guard reproducing the vendor asymmetry byte-for-byte', () => { - // #8289's guard splits the TARGET's roles without `trim()` and the - // CALLER's with it, on purpose, so its refusal set is the vendor's. This - // card does not correct it: after canonicalisation the two populations - // agree by construction, which is the point. If someone "cleans it up", - // this pin says so. - expect(targetCarriesCreatorRole(' owner', 'owner')).toBe(false); + it("keeps the remove-member guard's role reading equal to the vendor's, value for value", () => { + // #8289's guard must refuse exactly what the vendor refuses. Up to 1.7.12 + // that meant copying an asymmetry (the TARGET split without `trim()`, the + // CALLER with it). + // Since better-auth 1.7.29 the vendor reads BOTH sides through + // `parseRoleList`, so the guard does too: a padded owner is an owner on + // either side. The loop below is what keeps the guard equal to the vendor. + expect(targetCarriesCreatorRole(' owner', 'owner')).toBe(true); expect(callerCarriesCreatorRole(' owner', 'owner')).toBe(true); // …and the guard's target half still matches the vendor's, value for value. const vendorRemoveMember = vendorOwnerTest(VENDOR_BRANCHES[0]); - for (const stored of ['owner', 'Owner', ' owner', 'owner,admin', 'member']) { + for (const stored of ['owner', 'Owner', ' owner', 'owner ', 'owner,admin', 'admin, owner', 'owner,', 'member']) { expect(targetCarriesCreatorRole(stored, 'owner'), stored).toBe( vendorRemoveMember(stored, 'owner'), ); diff --git a/packages/plugins/plugin-auth/src/remove-member-permission-guard.ts b/packages/plugins/plugin-auth/src/remove-member-permission-guard.ts index fa26e767a63..6852c12a278 100644 --- a/packages/plugins/plugin-auth/src/remove-member-permission-guard.ts +++ b/packages/plugins/plugin-auth/src/remove-member-permission-guard.ts @@ -15,6 +15,13 @@ * i.e. AFTER both. Re-check by reading those line numbers; if the order has * changed upstream, this guard is what should be deleted, not adjusted: * + * The shape below is the 1.7.1 reading. Re-read 2026-12-02 against 1.7.29, + * the order (3a), (3b), (4) is unchanged; what changed is that every role read + * now goes through the vendor's `parseRoleList` (split on commas, trim each + * name, drop empty ones, `plugins/organization/roles.mjs`), for the target as + * well as the caller. So the target-side asymmetry described in property (2) + * below is gone upstream, and this guard reads both sides that way too. + * * ```js * const roles = toBeRemovedMember.role.split(","); * const creatorRole = ctx.context.orgOptions?.creatorRole || "owner"; @@ -72,12 +79,13 @@ * self-removal path removes the guard from the invariant's way completely * without exempting anything else. * 2. **It never widens a refusal.** The role test it applies is the vendor's - * own predicate at (3a), reproduced literally — including the asymmetry - * where the target's roles are split WITHOUT `trim()` and the caller's WITH - * it. Reproducing that asymmetry is deliberate: a "cleaned up" predicate - * would refuse inputs the vendor lets through (a `sys_member.role` of - * `' owner'` reads as an owner to a trimming test and as a non-owner to the - * vendor), which would be a policy change smuggled in under an envelope fix. + * own predicate at (3a), reproduced literally. Up to 1.7.12 that included + * an asymmetry: the target's roles were split WITHOUT `trim()` and the + * caller's WITH it, and the guard copied it, because a "cleaned up" + * predicate would have refused inputs the vendor let through. Since + * better-auth 1.7.29 the vendor trims both sides (`parseRoleList`), so a + * `sys_member.role` of `' owner'` IS an owner to the vendor's (3a), and the + * guard follows: the refusal set is still exactly the vendor's. * The permission half is decided by calling the vendor's OWN exported * `hasPermission`, never a local re-derivation of it — the org role * vocabulary is closed (ADR-0108) but the ac map is still the vendor's to @@ -97,30 +105,36 @@ export const REMOVE_MEMBER_DENIAL_MESSAGE = 'You are not allowed to delete this export const DEFAULT_CREATOR_ROLE = 'owner'; /** - * Does this role value carry `creatorRole`, read the way the vendor's (3a) - * reads the CALLER's — `split(',')` then `trim()` each part. + * The vendor's `parseRoleList` reading of a role value (better-auth 1.7.29, + * `plugins/organization/roles.mjs`): split on commas, trim each name, drop + * empty ones. A value that is neither a string nor an array carries no role. */ -export function callerCarriesCreatorRole(raw: unknown, creatorRole: string): boolean { +function vendorRoleList(raw: unknown): string[] { const flat = Array.isArray(raw) ? raw.join(',') : raw; - if (typeof flat !== 'string') return false; + if (typeof flat !== 'string') return []; return flat .split(',') .map((r) => r.trim()) - .includes(creatorRole); + .filter(Boolean); } /** * Does this role value carry `creatorRole`, read the way the vendor's (3a) - * reads the TARGET's — `split(',')` with NO `trim()`. - * - * The missing `trim()` is the vendor's, not a mistake here: see the header for - * why the asymmetry is reproduced rather than corrected. Correcting it would - * change WHO is refused, which this guard must not do. + * reads the CALLER's — `parseRoleList`. + */ +export function callerCarriesCreatorRole(raw: unknown, creatorRole: string): boolean { + return vendorRoleList(raw).includes(creatorRole); +} + +/** + * Does this role value carry `creatorRole`, read the way the vendor's (3a) + * reads the TARGET's — `parseRoleList` since better-auth 1.7.29, the same + * reading as the caller's (up to 1.7.12 the target was split with no `trim()`). + * It must stay the vendor's reading, never a stricter or looser one: changing + * it would change WHO is refused, which this guard must not do. */ export function targetCarriesCreatorRole(raw: unknown, creatorRole: string): boolean { - const flat = Array.isArray(raw) ? raw.join(',') : raw; - if (typeof flat !== 'string') return false; - return flat.split(',').includes(creatorRole); + return vendorRoleList(raw).includes(creatorRole); } /** From 2eaa477124caac61821945c7aaf77a1e64decf00 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 09:17:10 +0000 Subject: [PATCH 07/20] fix(plugin-auth): read texted codes under better-auth 1.7.29's phone-number identifiers Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .../credential-change-ends-prior-access.ts | 7 +++-- ...redential-change-ends-reset-tokens.test.ts | 5 ++-- .../credential-change-ends-reset-tokens.ts | 7 +++-- .../phone-otp-no-sms-service-refusal.test.ts | 3 ++- .../src/sso-only-local-password.test.ts | 3 ++- .../src/sso-only-local-password.ts | 3 ++- .../src/vendor-phone-code-identifiers.ts | 27 +++++++++++++++++++ 7 files changed, 44 insertions(+), 11 deletions(-) create mode 100644 packages/plugins/plugin-auth/src/vendor-phone-code-identifiers.ts diff --git a/packages/plugins/plugin-auth/src/credential-change-ends-prior-access.ts b/packages/plugins/plugin-auth/src/credential-change-ends-prior-access.ts index 0b8215478f9..6928304ce4d 100644 --- a/packages/plugins/plugin-auth/src/credential-change-ends-prior-access.ts +++ b/packages/plugins/plugin-auth/src/credential-change-ends-prior-access.ts @@ -124,6 +124,8 @@ * reset records (`session-tombstone.ts`). */ +import { phoneSignInCodeIdentifier } from './vendor-phone-code-identifiers.js'; + /** The path of better-auth's email verification door. */ export const VERIFY_EMAIL_PATH = '/verify-email'; @@ -434,7 +436,8 @@ export async function endPhoneCodeIssuedBeforeCredentialChange(ctx: any): Promis const userId = holder?.id; if (typeof userId !== 'string' || userId.length === 0) return; const internal = ctx.context.internalAdapter; - const code = (await internal.findVerificationValue(phoneNumber)) as { createdAt?: unknown; expiresAt?: unknown } | null | undefined; + const codeIdentifier = phoneSignInCodeIdentifier(phoneNumber); + const code = (await internal.findVerificationValue(codeIdentifier)) as { createdAt?: unknown; expiresAt?: unknown } | null | undefined; if (!code) return; const configured: unknown = ctx.context.getPlugin?.('phone-number')?.options?.expiresIn; const lifeMs = (typeof configured === 'number' && configured > 0 ? configured : PHONE_CODE_DEFAULT_LIFE_S) * 1000; @@ -444,7 +447,7 @@ export async function endPhoneCodeIssuedBeforeCredentialChange(ctx: any): Promis ); const issuedAtMs = readable.length > 0 ? Math.min(...readable) : Number.NaN; if (!(await issuedBeforeChangeOf(ctx, userId, issuedAtMs))) return; - await internal.deleteVerificationByIdentifier(phoneNumber); + await internal.deleteVerificationByIdentifier(codeIdentifier); } /** The local credential an account holds now, as better-auth reads it to check a password. */ diff --git a/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.test.ts b/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.test.ts index 755dfef1fbd..dbb69e44bae 100644 --- a/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.test.ts +++ b/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.test.ts @@ -58,6 +58,7 @@ import { sqliteEnginePool } from './__tests__/sqlite-engine-pool.testkit'; import 'better-auth'; import 'better-auth/api'; import 'better-auth/plugins'; +import { phoneResetCodeIdentifier } from './vendor-phone-code-identifiers'; const ORIGIN = 'http://localhost:3000'; const BASE = '/api/v1/auth'; @@ -471,13 +472,13 @@ describe('with a secondaryStorage cache, an ended token answers what a token nev answer(await s.fire('/phone-number/reset-password', { phoneNumber: PHONE, otp, newPassword: THIRD })); const neverSent = await resetByCode('000000'); const earlier = await s.requestCode(); - expect(s.cache.has(`verification:${PHONE}-request-password-reset`), 'the code is cached as it is sent').toBe(true); + expect(s.cache.has(`verification:${phoneResetCodeIdentifier(PHONE)}`), 'the code is cached as it is sent').toBe(true); const { bearer } = await s.signIn(EMAIL, FIRST); const changed = await s.fire('/change-password', { currentPassword: FIRST, newPassword: SECOND }, bearer); expect(changed.status, await changed.clone().text()).toBe(200); - expect(s.cache.has(`verification:${PHONE}-request-password-reset`)).toBe(false); + expect(s.cache.has(`verification:${phoneResetCodeIdentifier(PHONE)}`)).toBe(false); expect(await resetByCode(earlier)).toEqual(neverSent); }, 60_000); diff --git a/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.ts b/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.ts index 1f4568a97a6..011892b9a46 100644 --- a/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.ts +++ b/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.ts @@ -24,7 +24,7 @@ * - the emailed link, `/request-password-reset`: a row keyed * `reset-password:TOKEN` whose value is the user's id; * - the texted code, `/phone-number/request-password-reset`: the row keyed - * `PHONE-request-password-reset` for the phone number the user holds — the + * `phone-number-reset-PHONE` (`vendor-phone-code-identifiers.ts`) for the phone number the user holds — the * reset door finds its user by that number. * * Both are matched as the vendor stores them, with a plain identifier. A @@ -88,12 +88,11 @@ import { SystemObjectName } from '@objectstack/spec/system'; import { reattachInternalFieldsOnRead, type InternalFieldResolvingEngine } from './internal-field-readback.js'; +import { phoneResetCodeIdentifier } from './vendor-phone-code-identifiers.js'; /** The identifier prefix of an emailed reset link's row (better-auth `/request-password-reset`). */ export const RESET_LINK_IDENTIFIER_PREFIX = 'reset-password:'; -/** The identifier suffix of a texted reset code's row, after the phone number. */ -export const RESET_CODE_IDENTIFIER_SUFFIX = '-request-password-reset'; /** better-auth's cache key prefix for a verification value in `secondaryStorage`. */ const CACHE_KEY_PREFIX = 'verification:'; @@ -164,7 +163,7 @@ export async function endOutstandingResetTokens( fields: ['id', 'phone_number'], })) as { phone_number?: unknown } | null; const phone = typeof user?.phone_number === 'string' && user.phone_number.length > 0 ? user.phone_number : undefined; - const codeIdentifier = phone ? `${phone}${RESET_CODE_IDENTIFIER_SUFFIX}` : undefined; + const codeIdentifier = phone ? phoneResetCodeIdentifier(phone) : undefined; const cacheKeys: string[] = []; if (options.cache) { diff --git a/packages/plugins/plugin-auth/src/phone-otp-no-sms-service-refusal.test.ts b/packages/plugins/plugin-auth/src/phone-otp-no-sms-service-refusal.test.ts index dca1e2b611d..438eecad4bb 100644 --- a/packages/plugins/plugin-auth/src/phone-otp-no-sms-service-refusal.test.ts +++ b/packages/plugins/plugin-auth/src/phone-otp-no-sms-service-refusal.test.ts @@ -27,6 +27,7 @@ import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest'; import { assertEngineDeleteDispatch, assertEngineUpdateDispatch, assertEngineFindOnePredicate } from '@objectstack/objectql'; import { ErrorCode } from '@objectstack/spec/api'; import { AuthManager } from './auth-manager'; +import { phoneSignInCodeIdentifier } from './vendor-phone-code-identifiers'; // ─────────────────────────────────────────────────────────────────────────── // Harness @@ -181,7 +182,7 @@ const jsonBody = async (response: Response): Promise | n const storedOtpCodes = (engine: MemoryEngine, phone: string = PHONE): string[] => [...engine.tables.values()] .flat() - .filter((row) => row.identifier === phone && typeof row.value === 'string') + .filter((row) => row.identifier === phoneSignInCodeIdentifier(phone) && typeof row.value === 'string') .map((row) => String(row.value).split(':')[0]) .filter(Boolean); diff --git a/packages/plugins/plugin-auth/src/sso-only-local-password.test.ts b/packages/plugins/plugin-auth/src/sso-only-local-password.test.ts index 08cd74e9612..3639fbcedbc 100644 --- a/packages/plugins/plugin-auth/src/sso-only-local-password.test.ts +++ b/packages/plugins/plugin-auth/src/sso-only-local-password.test.ts @@ -23,6 +23,7 @@ import { type ResetDoorContext, } from './sso-only-local-password'; import { CLOUD_MANAGED_REFUSAL_CODE, CLOUD_MANAGED_REFUSAL_STATUS } from './cloud-managed'; +import { phoneResetCodeIdentifier } from './vendor-phone-code-identifiers'; const engineWith = (source: string | null) => ({ find: async () => [{ id: 'u1', source }], @@ -119,7 +120,7 @@ describe('resolveResetDoorUserId', () => { }); it('names the user of a matching texted code inside its budget, and nobody otherwise', async () => { - const id = '+15550100-request-password-reset'; + const id = phoneResetCodeIdentifier('+15550100'); const users = { '+15550100': 'u2' }; const at = (value: string, expiresAt = future()) => ctxFor('/phone-number/reset-password', { phoneNumber: '+15550100', otp: '123456' }, { [id]: { value, expiresAt } }, users); diff --git a/packages/plugins/plugin-auth/src/sso-only-local-password.ts b/packages/plugins/plugin-auth/src/sso-only-local-password.ts index 9d4f99deaa5..b5b4f609321 100644 --- a/packages/plugins/plugin-auth/src/sso-only-local-password.ts +++ b/packages/plugins/plugin-auth/src/sso-only-local-password.ts @@ -92,6 +92,7 @@ import type { StandardErrorCode } from '@objectstack/spec/api'; import { DIRECTORY_MANAGED_SOURCE } from './scim-identity-source.js'; +import { phoneResetCodeIdentifier } from './vendor-phone-code-identifiers.js'; /** * The ADR-0112 code every SSO-only refusal carries: the cloud-managed @@ -297,7 +298,7 @@ export async function resolveResetDoorUserId( const phoneNumber = ctx.body?.phoneNumber; const otp = ctx.body?.otp; if (typeof phoneNumber !== 'string' || !phoneNumber || typeof otp !== 'string' || !otp) return none; - const row = await internal.findVerificationValue(`${phoneNumber}-request-password-reset`); + const row = await internal.findVerificationValue(phoneResetCodeIdentifier(phoneNumber)); if (!isLive(row) || typeof row?.value !== 'string') return none; const [stored, rawAttempts] = row.value.split(':'); const attempts = Number(rawAttempts ?? 0); diff --git a/packages/plugins/plugin-auth/src/vendor-phone-code-identifiers.ts b/packages/plugins/plugin-auth/src/vendor-phone-code-identifiers.ts new file mode 100644 index 00000000000..9053baf7013 --- /dev/null +++ b/packages/plugins/plugin-auth/src/vendor-phone-code-identifiers.ts @@ -0,0 +1,27 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * The `sys_verification` identifiers better-auth's phone-number plugin keys + * its texted codes under — the one place this package spells them. + * + * Read out of the installed better-auth 1.7.29, + * `dist/plugins/phone-number/routes.mjs` (`phoneNumberOTPIdentifier` and + * `phoneNumberResetIdentifier`). Up to 1.7.12 the sign-in code was keyed by + * the bare phone number and the reset code by `PHONE-request-password-reset`; + * 1.7.29 namespaces both. A reader that still used the old keys found no row + * at all, so every check built on reading the code (who a reset names, ending + * a code issued before a credential change) went silent or failed. Every + * reader in this package goes through these two functions, so the next + * vendor rename is one edit here and every pin that reads a texted code + * reddens together. + */ + +/** The row of the code `POST /phone-number/send-otp` texts (sign-in and verify). */ +export function phoneSignInCodeIdentifier(phoneNumber: string): string { + return `phone-number-otp-${phoneNumber}`; +} + +/** The row of the code `POST /phone-number/request-password-reset` texts. */ +export function phoneResetCodeIdentifier(phoneNumber: string): string { + return `phone-number-reset-${phoneNumber}`; +} From f71b7b75f1a391284cbab100c76c6a02bfa7ec3c Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 09:22:14 +0000 Subject: [PATCH 08/20] fix(plugin-auth): keep a locked account's change-email link refused and follow better-auth 1.7.29's change-email semantics Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .../src/auth-manager-before-hook.ts | 5 ++ .../change-email-delete-user-wiring.test.ts | 11 ++- .../src/change-email-link-lockout.ts | 85 +++++++++++++++++++ .../locked-account-every-sign-in-door.test.ts | 14 +-- 4 files changed, 107 insertions(+), 8 deletions(-) create mode 100644 packages/plugins/plugin-auth/src/change-email-link-lockout.ts diff --git a/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts b/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts index 3dda54a0ee7..08dfa9a4621 100644 --- a/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts +++ b/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts @@ -100,6 +100,7 @@ import { declareSsoDiscoveryReadsOf, judgeSsoDiscoveryUrl } from './sso-discover import { snapshotRoleChangeGrants, UPDATE_MEMBER_ROLE_PATH } from './role-change-granted-set.js'; import { refuseVisitorResendWithoutLiveTransport } from './visitor-verification-resend.js'; import { refuseBlankInvitationRoleAtTheDoor } from './invite-role-not-found-code.js'; +import { refuseChangeEmailLinkForLockedAccount } from './change-email-link-lockout.js'; /** * Every client an `/oauth2/authorize` request names, for the ADR-0069 D5.1 @@ -279,6 +280,10 @@ export async function globalBeforeHook( // the endpoint context does not reach the database hooks. Lockout on only; // see `auth-manager-sign-in-lockout.ts`. await recordLockoutRequest.call(this, ctx); + // ADR-0069 D2: a change-email link no longer opens a session (better-auth + // 1.7.29), so a locked account's link is refused here instead of at + // session creation (`change-email-link-lockout.ts`). + await refuseChangeEmailLinkForLockedAccount.call(this, ctx); // ── A credential change ends access issued before it ────────── // An email-change link, a verification link that signs its holder in and diff --git a/packages/plugins/plugin-auth/src/change-email-delete-user-wiring.test.ts b/packages/plugins/plugin-auth/src/change-email-delete-user-wiring.test.ts index 6d9ae9f3cf5..c94b7995479 100644 --- a/packages/plugins/plugin-auth/src/change-email-delete-user-wiring.test.ts +++ b/packages/plugins/plugin-auth/src/change-email-delete-user-wiring.test.ts @@ -267,7 +267,7 @@ describe('#7735 — POST /change-email is wired, and confirmed by email', () => expect(userRows(engine).map((r) => r.email)).toEqual(['before@example.com']); }); - it('applies the change when the emailed link is followed, and marks the new address verified', async () => { + it('applies the change when the emailed link is followed; from an unverified address the new one stays unverified', async () => { const engine = createMemoryEngine(); const email = createRecordingEmailService(); const manager = makeManager(engine, email.service); @@ -295,7 +295,11 @@ describe('#7735 — POST /change-email is wired, and confirmed by email', () => const user = userRows(engine)[0]!; expect(user.email).toBe('new@example.com'); - expect(user.email_verified).toBeTruthy(); + // better-auth 1.7.29: a change-email link verifies the new address only + // when the address being left was verified ("it verifies the new email + // only if the current one was verified", vendor changelog). This account + // started unverified, so the new address is unverified too. + expect(user.email_verified).toBeFalsy(); }); it('without an email transport it refuses for the HONEST reason, not CHANGE_EMAIL_DISABLED', async () => { @@ -437,7 +441,8 @@ describe('#8019 — change-email notifies the previous address without gating on const applied = await manager.handleRequest(new Request(verificationUrl!, { headers: { cookie } })); expect([200, 302]).toContain(applied.status); expect(userRows(engine)[0]!.email).toBe('new@example.com'); - expect(userRows(engine)[0]!.email_verified).toBeTruthy(); + // Unverified before, unverified after (better-auth 1.7.29, see above). + expect(userRows(engine)[0]!.email_verified).toBeFalsy(); }); it('a notice that CANNOT be delivered still does not block the change', async () => { diff --git a/packages/plugins/plugin-auth/src/change-email-link-lockout.ts b/packages/plugins/plugin-auth/src/change-email-link-lockout.ts new file mode 100644 index 00000000000..998592d49b0 --- /dev/null +++ b/packages/plugins/plugin-auth/src/change-email-link-lockout.ts @@ -0,0 +1,85 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * ADR-0069 D2 on the address-change confirmation link: a locked account's + * address is not moved by opening the link. + * + * Up to better-auth 1.7.12, `GET /verify-email` with a change-email token + * moved the address AND opened a session for the account, so the lock's + * refusal at `session.create.before` (`refuseLockedAccountSession`) answered + * the request, and the address change it was part of did not land. + * better-auth 1.7.29 no longer signs anyone in from that link ("Opening a + * change email link no longer signs the user in", vendor changelog), so that + * refusal has no session to refuse, and a locked account's address would + * move. This keeps the answer the door gave: refused before the endpoint + * runs, with the answer password sign-in gives under the deployment's + * `lockoutRefusal` (`lockedAccountRefusal`), and nothing written. + * + * Only a token the vendor itself would act on is judged: signed with the + * auth secret (HS256, as the vendor verifies it), carrying `updateTo` and + * the `userId` the vendor binds the token to since 1.7.29. Any other token, + * an expired one included, falls through to the vendor's own answer. + * Lockout off (`lockoutThreshold` 0) or an expired lock admits. A read that + * fails falls through too: the vendor still refuses what it refuses, and the + * lock is a sign-in control that this door no longer passes through. + */ + +import type { IDataEngine } from '@objectstack/core'; +import { lockedAccountRefusal } from './sign-in-lockout-refusal.js'; + +/** better-auth's email verification door, which also applies a change-email link. */ +export const VERIFY_EMAIL_LINK_PATH = '/verify-email'; + +/** The members of `AuthManager` this reads. */ +export interface ChangeEmailLinkLockoutHost { + readonly config: { lockoutThreshold?: unknown; lockoutRefusal?: unknown }; + getDataEngine(): IDataEngine | undefined; +} + +/** The account a change-email token is bound to, or `undefined` when it is not such a token. */ +async function changeEmailTokenAccount(ctx: any): Promise { + const token = ctx?.query?.token; + const secret = ctx?.context?.secret; + if (typeof token !== 'string' || token === '' || typeof secret !== 'string' || secret === '') return undefined; + try { + const { jwtVerify } = await import('jose'); + const { payload } = await jwtVerify(token, new TextEncoder().encode(secret), { algorithms: ['HS256'] }); + const updateTo = (payload as { updateTo?: unknown }).updateTo; + const userId = (payload as { userId?: unknown }).userId; + if (typeof updateTo !== 'string' || updateTo === '') return undefined; + return typeof userId === 'string' && userId !== '' ? userId : undefined; + } catch { + return undefined; + } +} + +/** + * Refuse a change-email confirmation link for an account whose lock holds. + * A no-op on every other path and every other token. + */ +export async function refuseChangeEmailLinkForLockedAccount( + this: ChangeEmailLinkLockoutHost, + ctx: any, +): Promise { + if (ctx?.path !== VERIFY_EMAIL_LINK_PATH) return; + if ((Number(this.config.lockoutThreshold) || 0) <= 0) return; + const userId = await changeEmailTokenAccount(ctx); + if (!userId) return; + const engine = this.getDataEngine(); + if (!engine) return; + let lockedUntil: unknown; + try { + const row = (await engine.findOne('sys_user', { + where: { id: userId }, + fields: ['id', 'locked_until'], + context: { isSystem: true, positions: [], permissions: [] }, + } as never)) as { locked_until?: unknown } | null | undefined; + lockedUntil = row?.locked_until; + } catch { + return; + } + if (lockedUntil === null || lockedUntil === undefined || lockedUntil === '') return; + const at = new Date(lockedUntil as string | number | Date).getTime(); + if (!Number.isFinite(at) || at <= Date.now()) return; + throw await lockedAccountRefusal(this.config.lockoutRefusal); +} diff --git a/packages/plugins/plugin-auth/src/locked-account-every-sign-in-door.test.ts b/packages/plugins/plugin-auth/src/locked-account-every-sign-in-door.test.ts index 6221ebe69c2..24803e8c89b 100644 --- a/packages/plugins/plugin-auth/src/locked-account-every-sign-in-door.test.ts +++ b/packages/plugins/plugin-auth/src/locked-account-every-sign-in-door.test.ts @@ -928,10 +928,13 @@ describe('where the endpoint context does not reach the database hooks (the WebC }); describe('the address-change confirmation opened without a session', () => { - const confirmationUrl = async () => { + const confirmationUrl = async (userId: string) => { const { createEmailVerificationToken } = await import('better-auth/api'); + // better-auth 1.7.29 binds a change-email token to its account (`userId`) + // and refuses one without it as INVALID_TOKEN, as `/change-email` mints it. const token = await createEmailVerificationToken(SECRET, PLAIN.email, 'plain-moved@example.com', 3600, { requestType: 'change-email-verification', + userId, }); return `/verify-email?token=${token}`; }; @@ -942,20 +945,21 @@ describe('the address-change confirmation opened without a session', () => { const reference = await passwordSignInAnswer(rig, PLAIN.email); const rowsBefore = rig.sessionRows(rig.plainId); - const res = await rig.get(await confirmationUrl()); + const res = await rig.get(await confirmationUrl(rig.plainId)); expect(await answerOf(res)).toEqual(reference); expect(rig.sessionRows(rig.plainId), 'no session row was written').toBe(rowsBefore); expect(rig.userRow(PLAIN.email).email).toBe(PLAIN.email); }, 60_000); - it('CONTROL: an unlocked account confirms the change and is signed in', async () => { + it('CONTROL: an unlocked account confirms the change; since better-auth 1.7.29 the link signs nobody in', async () => { const rig = await arrange(); const rowsBefore = rig.sessionRows(rig.plainId); - const res = await rig.get(await confirmationUrl()); + const res = await rig.get(await confirmationUrl(rig.plainId)); expect(res.status, await res.clone().text()).toBe(200); - expect(rig.sessionRows(rig.plainId)).toBe(rowsBefore + 1); + expect(rig.userRow('plain-moved@example.com')?.email).toBe('plain-moved@example.com'); + expect(rig.sessionRows(rig.plainId)).toBe(rowsBefore); }, 60_000); }); From 1807a70700ee91f4831c2a2615928fbe4ba5cd7b Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 09:23:56 +0000 Subject: [PATCH 09/20] test(plugin-auth): bind the address-change links to their account, as better-auth 1.7.29 requires Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .../src/second-factor-code-and-link-doors.test.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts b/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts index 50c8d0a063b..dd3fd22a12d 100644 --- a/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts +++ b/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts @@ -476,9 +476,11 @@ describe('the address-change link on /verify-email asks an enrolled account for ['legacy', undefined], ['change-email-verification', { requestType: 'change-email-verification' }], ] as const; - const changeLink = async (extra: { requestType: string } | undefined): Promise => { + const changeLink = async (extra: { requestType: string } | undefined, userId: string): Promise => { const { createEmailVerificationToken } = await import('better-auth/api'); - const token = await createEmailVerificationToken(SECRET, ENROLLED_EMAIL, NEW_ADDRESS, undefined, extra); + // better-auth 1.7.29 binds an address-change token to its account + // (`userId`, as `/change-email` mints it) and refuses one without it. + const token = await createEmailVerificationToken(SECRET, ENROLLED_EMAIL, NEW_ADDRESS, undefined, { ...extra, userId }); return `/verify-email?token=${token}`; }; const rowById = (rig: Rig, id: string) => @@ -488,7 +490,7 @@ describe('the address-change link on /verify-email asks an enrolled account for const rig = await arrange(); const rowsBefore = rig.sessionRowsOf(rig.enrolledId); - const res = await rig.get(await changeLink(extra)); + const res = await rig.get(await changeLink(extra, rig.enrolledId)); await expectChallenge(res); await expectNoUsableCredential(rig, res); @@ -499,7 +501,7 @@ describe('the address-change link on /verify-email asks an enrolled account for const rig = await arrange(); const rowsBefore = rig.sessionRowsOf(rig.enrolledId); - const res = await rig.get(await changeLink(extra), { cookie: rig.enrolledCookie }); + const res = await rig.get(await changeLink(extra, rig.enrolledId), { cookie: rig.enrolledCookie }); expect(res.status, await res.clone().text()).toBe(200); expect(((await res.clone().json()) as any).twoFactorRedirect).toBeUndefined(); From 8847d6e40958cc6ef9b3784ead2e5ef83627cf5e Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 09:26:18 +0000 Subject: [PATCH 10/20] test(plugin-auth): pin the oauth-provider 1.7.29 refusals as they now answer Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- ...-manager.oauth-consent-organization.test.ts | 15 ++++++++++++--- .../plugin-auth/src/oauth-grant-ban-refusal.ts | 18 ++++++++++-------- .../oauth-register-application-type.test.ts | 9 +++++---- 3 files changed, 27 insertions(+), 15 deletions(-) diff --git a/packages/plugins/plugin-auth/src/auth-manager.oauth-consent-organization.test.ts b/packages/plugins/plugin-auth/src/auth-manager.oauth-consent-organization.test.ts index b2ca741b720..dc0920a1eec 100644 --- a/packages/plugins/plugin-auth/src/auth-manager.oauth-consent-organization.test.ts +++ b/packages/plugins/plugin-auth/src/auth-manager.oauth-consent-organization.test.ts @@ -521,7 +521,7 @@ describe('a banned user is minted no token at the token endpoint while the ban h }); const UNKNOWN_CODE = 'not-an-issued-code'; - it('a code issued before a ban that ended the user\'s sessions mints no token: the provider\'s session answer, and the code is spent', async () => { + it('a code issued before a ban that ended the user\'s sessions mints no token: the provider\'s session answer, before and after the ban is lifted', async () => { const server = await bootServer(await captureProviderOptions(), { admin: true }); const clientId = await registerClient(server); const cookie = await signUp(server, 'code.ban.route@acme.example.com'); @@ -538,10 +538,19 @@ describe('a banned user is minted no token at the token endpoint while the ban h expect(refused.body).toEqual({ error_description: 'session no longer exists', error: 'invalid_request' }); expect(server.refreshRows(), 'no refresh family was started').toEqual([]); - // Spent either way: with the ban lifted, the same code answers as one never issued. + // Lifting the ban mints nothing either. Up to @better-auth/oauth-provider + // 1.7.12 the code was consumed before the session check, so it then + // answered as a code never issued; 1.7.29 checks the code's session first + // and consumes the code only on the way to a token, so it keeps answering + // that its session no longer exists. The session row is deleted and a + // session id is never issued again, so the code cannot reach a token + // before it expires. row.banned = false; row.banExpires = null; - expect(await codeAnswer(server, clientId, code)).toEqual(await codeAnswer(server, clientId, UNKNOWN_CODE)); + const again = await codeAnswer(server, clientId, code); + expect(again.status).toBe(400); + expect(again.body).toEqual({ error_description: 'session no longer exists', error: 'invalid_request' }); + expect(server.refreshRows(), 'no refresh family was started').toEqual([]); }); it('a code exchanged while a banned user\'s session survived answers as a code never issued, and mints no token', async () => { diff --git a/packages/plugins/plugin-auth/src/oauth-grant-ban-refusal.ts b/packages/plugins/plugin-auth/src/oauth-grant-ban-refusal.ts index 480f9d8ca89..f1407448104 100644 --- a/packages/plugins/plugin-auth/src/oauth-grant-ban-refusal.ts +++ b/packages/plugins/plugin-auth/src/oauth-grant-ban-refusal.ts @@ -30,14 +30,16 @@ * * - `refresh_token`: nothing is written. A refused refresh leaves every row * as it was, and the same refresh token renews once the ban is lifted. - * - `authorization_code`: the provider has already consumed the code, and has - * required the session the code was issued under to still exist. The ban - * routes end the user's sessions, so a code issued before a ban placed - * there is answered by the provider's own session check - * (`400 invalid_request`, `session no longer exists`) and never reaches - * this callback; this refusal answers a code only while the user's session - * survived the ban (a ban written without ending sessions). Either way no - * token is minted, and the code is spent: after the ban the client signs + * - `authorization_code`: the provider has required the session the code + * was issued under to still exist. The ban routes end the user's sessions, + * so a code issued before a ban placed there is answered by the provider's + * own session check (`400 invalid_request`, `session no longer exists`) + * and never reaches this callback. Since @better-auth/oauth-provider + * 1.7.29 that check runs before the code is consumed, so such a code is + * not spent: it keeps that answer until it expires, and it can never mint, + * because its session row is gone. This refusal answers a code only while + * the user's session survived the ban (a ban written without ending + * sessions). Either way no token is minted: after the ban the client signs * the user in again. * * Not chosen: a `/oauth2/token` before-hook (it has no user — it would have to diff --git a/packages/plugins/plugin-auth/src/oauth-register-application-type.test.ts b/packages/plugins/plugin-auth/src/oauth-register-application-type.test.ts index 3dd3d789eb2..7b59122d8aa 100644 --- a/packages/plugins/plugin-auth/src/oauth-register-application-type.test.ts +++ b/packages/plugins/plugin-auth/src/oauth-register-application-type.test.ts @@ -301,12 +301,13 @@ describe('[#24773] web and native reach the provider as `application_type`', () expect(answer.warnings).toEqual([]); }); - it('native + plain http on a non-loopback host: refused (the provider\'s body schema) — 400, nothing stored', async () => { - // The provider's `SafeUrlSchema` requires https except on loopback hosts, - // for every application type, before its per-type rule runs. + it('native + plain http on a non-loopback host: refused (the provider\'s redirect-URI rule) — 400, nothing stored', async () => { + // Refused either way; up to @better-auth/oauth-provider 1.7.12 the body + // schema's `SafeUrlSchema` refused it with no discriminator, and 1.7.29's + // redirect-URI rule now answers first and names `invalid_redirect_uri`. const before = (await storedClients()).length; const answer = await register({ name: 'Remote Native', redirectURLs: PLAIN_HTTP, type: 'native' }); - await expectRefused(answer, before, 'body-schema'); + await expectRefused(answer, before, 'redirect-uri-rule'); expect(answer.warnings).toEqual([]); }); From 6c25fe87f950aa7d1b8235f00c72caea770aa554 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 09:35:09 +0000 Subject: [PATCH 11/20] docs(plugin-auth): note better-auth 1.7.29's change-email step Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .../plugins/plugin-auth/src/auth-manager-auth-instance.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/plugins/plugin-auth/src/auth-manager-auth-instance.ts b/packages/plugins/plugin-auth/src/auth-manager-auth-instance.ts index dc5100be8cb..0a06d8f04c5 100644 --- a/packages/plugins/plugin-auth/src/auth-manager-auth-instance.ts +++ b/packages/plugins/plugin-auth/src/auth-manager-auth-instance.ts @@ -278,6 +278,11 @@ export async function createAuthInstance(this: AuthInstanceHost): Promise Date: Wed, 2 Dec 2026 10:09:48 +0000 Subject: [PATCH 12/20] test(plugin-auth): pay the egress module's first load at collection in the edited tests Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .../plugin-auth/src/change-email-delete-user-wiring.test.ts | 2 ++ .../plugin-auth/src/credential-change-ends-reset-tokens.test.ts | 2 ++ .../plugin-auth/src/oauth-register-application-type.test.ts | 2 ++ .../plugin-auth/src/phone-otp-no-sms-service-refusal.test.ts | 2 ++ 4 files changed, 8 insertions(+) diff --git a/packages/plugins/plugin-auth/src/change-email-delete-user-wiring.test.ts b/packages/plugins/plugin-auth/src/change-email-delete-user-wiring.test.ts index c94b7995479..52aadae8295 100644 --- a/packages/plugins/plugin-auth/src/change-email-delete-user-wiring.test.ts +++ b/packages/plugins/plugin-auth/src/change-email-delete-user-wiring.test.ts @@ -37,6 +37,8 @@ import type { IEmailService, SendEmailResult, SendTemplateInput } from '@objects import { AuthManager } from './auth-manager'; import { inviteForAudienceGate } from './audience-gate-test-support'; import { CREDENTIALS_NAME_DIFFERENT_ACCOUNTS_CODE } from './one-account-per-request'; +// Paid at collection, not inside a clocked case: the source reaches it through a dynamic import. +import '@objectstack/core/egress'; // ─────────────────────────────────────────────────────────────────────────── // Harness diff --git a/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.test.ts b/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.test.ts index dbb69e44bae..aa2db606628 100644 --- a/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.test.ts +++ b/packages/plugins/plugin-auth/src/credential-change-ends-reset-tokens.test.ts @@ -59,6 +59,8 @@ import 'better-auth'; import 'better-auth/api'; import 'better-auth/plugins'; import { phoneResetCodeIdentifier } from './vendor-phone-code-identifiers'; +// Paid at collection, not inside a clocked case: the source reaches it through a dynamic import. +import '@objectstack/core/egress'; const ORIGIN = 'http://localhost:3000'; const BASE = '/api/v1/auth'; diff --git a/packages/plugins/plugin-auth/src/oauth-register-application-type.test.ts b/packages/plugins/plugin-auth/src/oauth-register-application-type.test.ts index 7b59122d8aa..9cf3170a60f 100644 --- a/packages/plugins/plugin-auth/src/oauth-register-application-type.test.ts +++ b/packages/plugins/plugin-auth/src/oauth-register-application-type.test.ts @@ -43,6 +43,8 @@ import type { PluginContext } from '@objectstack/core'; import { AuthManager } from './auth-manager'; import { AuthPlugin } from './auth-plugin'; import { authIdentityObjects } from './manifest'; +// Paid at collection, not inside a clocked case: the source reaches it through a dynamic import. +import '@objectstack/core/egress'; const SECRET = 'test-secret-at-least-32-chars-long-24773'; const PASSWORD = 'S3cure!Passw0rd-24773-type'; diff --git a/packages/plugins/plugin-auth/src/phone-otp-no-sms-service-refusal.test.ts b/packages/plugins/plugin-auth/src/phone-otp-no-sms-service-refusal.test.ts index 438eecad4bb..faab6e4bd34 100644 --- a/packages/plugins/plugin-auth/src/phone-otp-no-sms-service-refusal.test.ts +++ b/packages/plugins/plugin-auth/src/phone-otp-no-sms-service-refusal.test.ts @@ -28,6 +28,8 @@ import { assertEngineDeleteDispatch, assertEngineUpdateDispatch, assertEngineFin import { ErrorCode } from '@objectstack/spec/api'; import { AuthManager } from './auth-manager'; import { phoneSignInCodeIdentifier } from './vendor-phone-code-identifiers'; +// Paid at collection, not inside a clocked case: the source reaches it through a dynamic import. +import '@objectstack/core/egress'; // ─────────────────────────────────────────────────────────────────────────── // Harness From e986400c43c1e8fa03c80ef86a2d95ff4b1623c0 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 10:25:02 +0000 Subject: [PATCH 13/20] chore(changeset): say what the better-auth 1.7.29 lift changes and keeps on the auth doors Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .changeset/39068-deps-refresh.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.changeset/39068-deps-refresh.md b/.changeset/39068-deps-refresh.md index 82cfa59cb44..d2167378cf3 100644 --- a/.changeset/39068-deps-refresh.md +++ b/.changeset/39068-deps-refresh.md @@ -22,6 +22,17 @@ A downstream install now resolves the fixed release of every dependency these pa The same release refreshes four runtime dependencies to their latest patch level: - `better-auth` and the `@better-auth/*` family 1.7.12 → 1.7.29 (`@objectstack/plugin-auth`, `@object-ui/auth`), still exact. The upstream releases in between include stricter session revocation (a revoke or sign-out that a hook vetoes now fails instead of reporting success, and revoking a session expires its cookies), an origin check on anonymous sign-in, headers and cookies set by a `hooks.before` hook now reaching the response, and stricter organization role and invitation handling. Every symbol `@objectstack/plugin-auth` imports is still exported. + + What changes for an auth client, from the vendor: + - The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified. + - A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token. + - Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`. + + What `@objectstack/plugin-auth` keeps as it was: + - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. + - A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself. + - A locked account's address-change link is still refused with the lockout answer, and the address does not move. + - The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped. - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). From 10a9ad613ab5b5f9a5db5707dea9c3ef432b2bde Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 11:37:34 +0000 Subject: [PATCH 14/20] fix(plugin-auth): refuse a sessionless address-change link for a second-factor account better-auth 1.7.29 no longer signs anyone in from a change-email link, so the two-factor sign-in challenge no longer answers it. Per the ruling, an enrolled account's link opened with no session is refused in the before hook with the existing 401 UNAUTHENTICATED and the address does not move. Signed-in callers and accounts without a second factor keep the vendor's link behaviour. Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .changeset/39068-deps-refresh.md | 1 + .../src/auth-manager-before-hook.ts | 4 + .../src/change-email-link-second-factor.ts | 91 +++++++++++++++++++ .../second-factor-code-and-link-doors.test.ts | 34 +++++-- 4 files changed, 124 insertions(+), 6 deletions(-) create mode 100644 packages/plugins/plugin-auth/src/change-email-link-second-factor.ts diff --git a/.changeset/39068-deps-refresh.md b/.changeset/39068-deps-refresh.md index d2167378cf3..40a812d14a7 100644 --- a/.changeset/39068-deps-refresh.md +++ b/.changeset/39068-deps-refresh.md @@ -32,6 +32,7 @@ The same release refreshes four runtime dependencies to their latest patch level - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. - A blank invitation role or an empty entry in a role list (`"member,"`) is still refused `400 ROLE_NOT_FOUND` with the sentence that says the role is empty. The vendor now drops empty entries itself. - A locked account's address-change link is still refused with the lockout answer, and the address does not move. + - An address-change link opened without signing in, for an account enrolled in a second factor, still does not move the address: it is refused `401 UNAUTHENTICATED` ("Sign in to confirm the address change"), and no session is issued. Before, the link met the second-factor challenge; it no longer signs anyone in. Signed in, the link works as before; an account with no second factor follows the vendor's link. - The remove-member owner guard reads both roles the way the vendor now does: trimmed, with empty entries dropped. - `nodemailer` `^10.6.2` (`@objectstack/plugin-email`). - `@modelcontextprotocol/sdk` `^1.32.2` (`@objectstack/mcp`, `@objectstack/connector-mcp`). diff --git a/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts b/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts index 08dfa9a4621..73ab00e12f9 100644 --- a/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts +++ b/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts @@ -101,6 +101,7 @@ import { snapshotRoleChangeGrants, UPDATE_MEMBER_ROLE_PATH } from './role-change import { refuseVisitorResendWithoutLiveTransport } from './visitor-verification-resend.js'; import { refuseBlankInvitationRoleAtTheDoor } from './invite-role-not-found-code.js'; import { refuseChangeEmailLinkForLockedAccount } from './change-email-link-lockout.js'; +import { refuseSessionlessChangeEmailLinkForSecondFactor } from './change-email-link-second-factor.js'; /** * Every client an `/oauth2/authorize` request names, for the ADR-0069 D5.1 @@ -284,6 +285,9 @@ export async function globalBeforeHook( // 1.7.29), so a locked account's link is refused here instead of at // session creation (`change-email-link-lockout.ts`). await refuseChangeEmailLinkForLockedAccount.call(this, ctx); + // The same link opened with no session no longer meets the second-factor + // challenge; an enrolled account is asked to sign in first. + await refuseSessionlessChangeEmailLinkForSecondFactor.call(this, ctx); // ── A credential change ends access issued before it ────────── // An email-change link, a verification link that signs its holder in and diff --git a/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts b/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts new file mode 100644 index 00000000000..e64c124c4f7 --- /dev/null +++ b/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts @@ -0,0 +1,91 @@ +// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. + +/** + * An address-change confirmation link opened with no session does not move + * the address of an account enrolled in a second factor. + * + * Up to better-auth 1.7.12, `GET /verify-email` with a change-email token + * moved the address AND signed the account in, so the two-factor plugin's + * sign-in challenge answered the request (`twoFactorRedirect`) and no usable + * session was issued. better-auth 1.7.29 no longer signs anyone in from that + * link, so there is no challenge left on this door, and an enrolled + * account's address would move on the strength of the mailbox alone. + * + * The maintainer's ruling: such a link, opened with no session, is refused + * before the endpoint runs with the existing `401 UNAUTHENTICATED` and + * nothing is written; the account holder signs in (passing the second + * factor) and opens the link again. A signed-in caller is the vendor's to + * judge (since 1.7.29 it refuses a session of another account), and an + * account with no second factor keeps the vendor's link behaviour. + * + * Only a token the vendor itself would act on is judged: signed with the + * auth secret (HS256), carrying `updateTo` and the bound `userId`. The + * session is read through the hook-order-independent `resolveActor`, so a + * bearer caller counts as signed in. Enrollment is `sys_user.two_factor_enabled`; + * a read of it that fails refuses (an unreadable enrollment is not taken + * as none). + */ + +import type { IDataEngine } from '@objectstack/core'; +import { VERIFY_EMAIL_LINK_PATH } from './change-email-link-lockout.js'; + +/** The members of `AuthManager` this reads. */ +export interface ChangeEmailLinkSecondFactorHost { + getDataEngine(): IDataEngine | undefined; + resolveActor(ctx: any): Promise<{ userId: string } | null>; +} + +/** The refusal's message, shown to the person who opened the link. */ +export const CHANGE_EMAIL_LINK_SIGN_IN_MESSAGE = + 'Sign in to confirm the address change, then open the link again.'; + +/** The account a change-email token is bound to, or `undefined` when it is not such a token. */ +async function changeEmailTokenAccount(ctx: any): Promise { + const token = ctx?.query?.token; + const secret = ctx?.context?.secret; + if (typeof token !== 'string' || token === '' || typeof secret !== 'string' || secret === '') return undefined; + try { + const { jwtVerify } = await import('jose'); + const { payload } = await jwtVerify(token, new TextEncoder().encode(secret), { algorithms: ['HS256'] }); + const updateTo = (payload as { updateTo?: unknown }).updateTo; + const userId = (payload as { userId?: unknown }).userId; + if (typeof updateTo !== 'string' || updateTo === '') return undefined; + return typeof userId === 'string' && userId !== '' ? userId : undefined; + } catch { + return undefined; + } +} + +/** Whether the account is enrolled in a second factor; a failed read answers `true`. */ +async function enrolledInSecondFactor(engine: IDataEngine, userId: string): Promise { + try { + const row = (await engine.findOne('sys_user', { + where: { id: userId }, + fields: ['id', 'two_factor_enabled'], + context: { isSystem: true, positions: [], permissions: [] }, + } as never)) as { two_factor_enabled?: unknown } | null | undefined; + const value = row?.two_factor_enabled; + return value === true || value === 1; + } catch { + return true; + } +} + +/** + * Refuse a change-email link opened with no session for an account enrolled + * in a second factor. A no-op on every other path, token and caller. + */ +export async function refuseSessionlessChangeEmailLinkForSecondFactor( + this: ChangeEmailLinkSecondFactorHost, + ctx: any, +): Promise { + if (ctx?.path !== VERIFY_EMAIL_LINK_PATH) return; + const userId = await changeEmailTokenAccount(ctx); + if (!userId) return; + const engine = this.getDataEngine(); + if (!engine) return; + if (await this.resolveActor(ctx)) return; + if (!(await enrolledInSecondFactor(engine, userId))) return; + const { APIError } = await import('better-auth/api'); + throw new APIError('UNAUTHORIZED', { code: 'UNAUTHENTICATED', message: CHANGE_EMAIL_LINK_SIGN_IN_MESSAGE }); +} diff --git a/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts b/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts index dd3fd22a12d..0414b98b90e 100644 --- a/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts +++ b/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts @@ -469,32 +469,54 @@ describe('a sign-in link asks for the second factor on its redirect lane too', ( }); // ─────────────────────────────────────────────────────────────────────────── -describe('the address-change link on /verify-email asks an enrolled account for its second factor', () => { +describe('the address-change link on /verify-email asks an enrolled account to sign in first', () => { const NEW_ADDRESS = 'moved@example.com'; /** The two address-change token types: the legacy one (no type) and the verification step. */ const TOKEN_TYPES = [ ['legacy', undefined], ['change-email-verification', { requestType: 'change-email-verification' }], ] as const; - const changeLink = async (extra: { requestType: string } | undefined, userId: string): Promise => { + const changeLink = async ( + extra: { requestType: string } | undefined, + userId: string, + email: string = ENROLLED_EMAIL, + ): Promise => { const { createEmailVerificationToken } = await import('better-auth/api'); // better-auth 1.7.29 binds an address-change token to its account // (`userId`, as `/change-email` mints it) and refuses one without it. - const token = await createEmailVerificationToken(SECRET, ENROLLED_EMAIL, NEW_ADDRESS, undefined, { ...extra, userId }); + const token = await createEmailVerificationToken(SECRET, email, NEW_ADDRESS, undefined, { ...extra, userId }); return `/verify-email?token=${token}`; }; const rowById = (rig: Rig, id: string) => ((rig.engine.tables.get('sys_user') ?? []) as any[]).find((r) => String(r.id) === id); - it.each(TOKEN_TYPES)('%s token, no session: an enrolled account gets the challenge and no usable credential', async (_type, extra) => { + // better-auth 1.7.29 no longer signs anyone in from this link, so the + // sign-in challenge no longer answers it. The ruled answer: refused with the + // existing 401 UNAUTHENTICATED before the endpoint runs, nothing written + // (`change-email-link-second-factor.ts`). + it.each(TOKEN_TYPES)('%s token, no session: an enrolled account is refused 401 UNAUTHENTICATED and the address does not move', async (_type, extra) => { const rig = await arrange(); const rowsBefore = rig.sessionRowsOf(rig.enrolledId); const res = await rig.get(await changeLink(extra, rig.enrolledId)); - await expectChallenge(res); + expect(res.status, await res.clone().text()).toBe(401); + expect(((await res.clone().json()) as any).code).toBe('UNAUTHENTICATED'); + expect(rowById(rig, rig.enrolledId)?.email, 'the address does not move').toBe(ENROLLED_EMAIL); + await expectNoUsableCredential(rig, res); + expect(rig.sessionRowsOf(rig.enrolledId), 'no session was minted').toBe(rowsBefore); + }, 60_000); + + it.each(TOKEN_TYPES)('CONTROL %s token, no session: an account with no second factor follows the vendor link (address moves, no session)', async (_type, extra) => { + const rig = await arrange(); + const rowsBefore = rig.sessionRowsOf(rig.plainId); + + const res = await rig.get(await changeLink(extra, rig.plainId, PLAIN_EMAIL)); + + expect(res.status, await res.clone().text()).toBe(200); + expect(rowById(rig, rig.plainId)?.email, 'the address moves').toBe(NEW_ADDRESS); await expectNoUsableCredential(rig, res); - expect(rig.sessionRowsOf(rig.enrolledId), 'no session row was left behind').toBe(rowsBefore); + expect(rig.sessionRowsOf(rig.plainId), 'the link signs no one in').toBe(rowsBefore); }, 60_000); it.each(TOKEN_TYPES)('%s token, signed in as the same account: not challenged, the session is kept and the address changes', async (_type, extra) => { From 2992d19c2321bdc3903e947e484b085b5b2b340e Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 12:46:11 +0000 Subject: [PATCH 15/20] docs(plugin-auth): scope the better-auth 1.7.12 readings to the then-installed release check:vendor-version-stamps turned red when the pin moved to 1.7.29: fifteen comments stated a 1.7.12 reading in the present tense. Each is scoped with "then-installed", which re-measures nothing and changes no claim. Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .../plugin-auth/src/account-self-service-refusal-code.ts | 2 +- packages/plugins/plugin-auth/src/auth-manager-before-hook.ts | 2 +- packages/plugins/plugin-auth/src/auth-route-ledger.ts | 2 +- packages/plugins/plugin-auth/src/implicit-account-linking.ts | 2 +- packages/plugins/plugin-auth/src/mcp-token-revocation.test.ts | 2 +- packages/plugins/plugin-auth/src/oauth-grant-ban-refusal.ts | 2 +- .../plugins/plugin-auth/src/oauth-token-read-ban-refusal.ts | 2 +- packages/plugins/plugin-auth/src/register-sso-provider.ts | 4 ++-- packages/plugins/plugin-auth/src/session-tombstone.ts | 2 +- packages/plugins/plugin-auth/src/sso-provider-lifecycle.ts | 4 ++-- packages/plugins/plugin-auth/src/sso-saml-account-key.ts | 2 +- packages/plugins/plugin-auth/src/sso-saml-standard-claims.ts | 2 +- packages/plugins/plugin-auth/src/sso-sign-in-options.ts | 2 +- packages/runtime/src/dispatcher-error-vocabulary.ts | 2 +- 14 files changed, 16 insertions(+), 16 deletions(-) diff --git a/packages/plugins/plugin-auth/src/account-self-service-refusal-code.ts b/packages/plugins/plugin-auth/src/account-self-service-refusal-code.ts index 017cbf052f7..d987fdf91f3 100644 --- a/packages/plugins/plugin-auth/src/account-self-service-refusal-code.ts +++ b/packages/plugins/plugin-auth/src/account-self-service-refusal-code.ts @@ -7,7 +7,7 @@ * ## The defect, at the seam * * better-auth (`dist/api/routes/update-user.mjs`, measured against the - * installed `1.7.12`) refuses three conditions on these two doors with + * then-installed `1.7.12`) refuses three conditions on these two doors with * `APIError.fromStatus("BAD_REQUEST", { message })` — a message and no `code`: * * POST /change-email {"newEmail": } diff --git a/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts b/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts index 73ab00e12f9..c2eebd23eac 100644 --- a/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts +++ b/packages/plugins/plugin-auth/src/auth-manager-before-hook.ts @@ -905,7 +905,7 @@ export async function globalBeforeHook( // reason the audience refusal above is — and STRICTLY after it. // // Same shield, its other arm. `shouldReturnGenericDuplicateResponse` - // (better-auth 1.7.12 sign-up.mjs:155) is on whenever + // (the then-installed better-auth 1.7.12 sign-up.mjs:155) is on whenever // `requireEmailVerification` is on OR `autoSignIn === false`, and it // guards TWO sites: the 403 catch at :227 (what the audience block // above steps around) and the duplicate pre-check at :192–204. On diff --git a/packages/plugins/plugin-auth/src/auth-route-ledger.ts b/packages/plugins/plugin-auth/src/auth-route-ledger.ts index 03ecf1f2886..dec88c2b968 100644 --- a/packages/plugins/plugin-auth/src/auth-route-ledger.ts +++ b/packages/plugins/plugin-auth/src/auth-route-ledger.ts @@ -177,7 +177,7 @@ export const AUTH_ROUTE_LEDGER: readonly AuthRouteLedgerEntry[] = [ { route: 'POST /api/v1/auth/oauth2/consent', family: 'oauth-provider', source: 'better-auth', disposition: 'sdk', client: 'oauth.consent', requires: 'oidcProvider' }, { route: 'POST /api/v1/auth/oauth2/create-client', family: 'oauth-provider', source: 'better-auth', disposition: 'sdk', client: 'oauth.applications.register', requires: 'oidcProvider' }, { route: 'POST /api/v1/auth/oauth2/delete-client', family: 'oauth-provider', source: 'better-auth', disposition: 'sdk', client: 'oauth.applications.delete', requires: 'oidcProvider' }, - { route: 'POST /api/v1/auth/oauth2/delete-consent', family: 'oauth-provider', source: 'better-auth', disposition: 'server-only', requires: 'oidcProvider', note: 'no SDK method builds this URL — the withdraw door is POST /authorized-clients/withdraw. Measured on @better-auth/oauth-provider 1.7.12: the vendor route does check the consent is the session user\'s, but answers an unknown id 404 and another person\'s id 401, so the two can be told apart, and it leaves the client\'s refresh family in place; the ObjectStack door answers both the same 404 and revokes the whole grant' }, + { route: 'POST /api/v1/auth/oauth2/delete-consent', family: 'oauth-provider', source: 'better-auth', disposition: 'server-only', requires: 'oidcProvider', note: 'no SDK method builds this URL — the withdraw door is POST /authorized-clients/withdraw. Measured on the then-installed @better-auth/oauth-provider 1.7.12: the vendor route does check the consent is the session user\'s, but answers an unknown id 404 and another person\'s id 401, so the two can be told apart, and it leaves the client\'s refresh family in place; the ObjectStack door answers both the same 404 and revokes the whole grant' }, { route: 'GET /api/v1/auth/oauth2/get-client', family: 'oauth-provider', source: 'better-auth', disposition: 'sdk', client: 'oauth.applications.get', requires: 'oidcProvider' }, { route: 'GET /api/v1/auth/oauth2/get-clients', family: 'oauth-provider', source: 'better-auth', disposition: 'sdk', client: 'oauth.applications.list', requires: 'oidcProvider' }, { route: 'GET /api/v1/auth/oauth2/public-client', family: 'oauth-provider', source: 'better-auth', disposition: 'sdk', client: 'oauth.applications.getPublic', requires: 'oidcProvider' }, diff --git a/packages/plugins/plugin-auth/src/implicit-account-linking.ts b/packages/plugins/plugin-auth/src/implicit-account-linking.ts index 4308c632841..dbfa3e3d962 100644 --- a/packages/plugins/plugin-auth/src/implicit-account-linking.ts +++ b/packages/plugins/plugin-auth/src/implicit-account-linking.ts @@ -416,7 +416,7 @@ function parseOidcConfig(value: unknown): Record | null { /** * Whether this sign-in through an SSO provider writes the asserted address * onto the account it is linked to: the vendor's own decision, read from the - * same inputs it reads. Measured against `@better-auth/sso` 1.7.12 and + * same inputs it reads. Measured against the then-installed `@better-auth/sso` 1.7.12 and * better-auth 1.7.12 (`handleOAuthUserInfo`, linked-account branch): the * address is written when a `resolveUser` selection asks for a profile * update, otherwise when the callback hands over the provider's update flag diff --git a/packages/plugins/plugin-auth/src/mcp-token-revocation.test.ts b/packages/plugins/plugin-auth/src/mcp-token-revocation.test.ts index b8d1876065a..742b1aa503d 100644 --- a/packages/plugins/plugin-auth/src/mcp-token-revocation.test.ts +++ b/packages/plugins/plugin-auth/src/mcp-token-revocation.test.ts @@ -4,7 +4,7 @@ * [objectstack-ai/cloud#3606, ruling A] An MCP access token is revoked through * the OAuth consent it was minted under (`mcp-token-revocation.ts`). * - * Every reading is taken off a REAL `AuthManager` — the installed + * Every reading is taken off a REAL `AuthManager` — the then-installed * `@better-auth/oauth-provider` 1.7.12 with this package's own options — on a * real `ObjectQL` over `@objectstack/driver-sql` + better-sqlite3, driven * through `handleRequest`, the seam the revoke answer lives on: DCR → sign-up diff --git a/packages/plugins/plugin-auth/src/oauth-grant-ban-refusal.ts b/packages/plugins/plugin-auth/src/oauth-grant-ban-refusal.ts index f1407448104..e5b3d479214 100644 --- a/packages/plugins/plugin-auth/src/oauth-grant-ban-refusal.ts +++ b/packages/plugins/plugin-auth/src/oauth-grant-ban-refusal.ts @@ -14,7 +14,7 @@ * * ## Where it runs, and why there * - * The installed `@better-auth/oauth-provider` (1.7.12) resolves every grant + * The then-installed `@better-auth/oauth-provider` (1.7.12) resolves every grant * that acts for a user — `authorization_code`, `refresh_token`, and any * extension grant that issues through the provider — to that user's row * (`internalAdapter.findUserById`) and hands the row to ONE function, diff --git a/packages/plugins/plugin-auth/src/oauth-token-read-ban-refusal.ts b/packages/plugins/plugin-auth/src/oauth-token-read-ban-refusal.ts index c323c2f707c..6caf34ed661 100644 --- a/packages/plugins/plugin-auth/src/oauth-token-read-ban-refusal.ts +++ b/packages/plugins/plugin-auth/src/oauth-token-read-ban-refusal.ts @@ -7,7 +7,7 @@ * * A ban refuses the user's OAuth access tokens at the MCP door * (`@objectstack/runtime` `oauth-subject-ban.ts`), and the token endpoint mints - * that user no new token (`oauth-grant-ban-refusal.ts`). The installed + * that user no new token (`oauth-grant-ban-refusal.ts`). The then-installed * `@better-auth/oauth-provider` (1.7.12) serves two more doors that take an * access token and answer for its user: `/oauth2/userinfo` (OIDC Core §5.3), * which returns the user's claims, and `/oauth2/introspect` (RFC 7662), which diff --git a/packages/plugins/plugin-auth/src/register-sso-provider.ts b/packages/plugins/plugin-auth/src/register-sso-provider.ts index 8d18a77fff7..bdceb0a50f4 100644 --- a/packages/plugins/plugin-auth/src/register-sso-provider.ts +++ b/packages/plugins/plugin-auth/src/register-sso-provider.ts @@ -978,7 +978,7 @@ export async function runSetSsoGroupsClaim( // The edit bridge writes through the vendor's own `/sso/update-provider` (so // its provider-access check, plugin-auth's held-caller refusal and the domain // check run), from the flat fields the two `sys_sso_provider` edit actions -// post. Measured on the installed `@better-auth/sso` 1.7.12: the vendor merges +// post. Measured on the then-installed `@better-auth/sso` 1.7.12: the vendor merges // an update member by member (`mergeSAMLConfig` / `mergeOIDCConfig`: // `updates.X ?? current.X`; `idpMetadata` and `spMetadata` shallow-merged), // and replaces only `mapping` whole. So the bridge sends exactly the members @@ -1268,7 +1268,7 @@ export async function runSsoProviderDeleteImpact( // ── The attribute mapping (who a sign-in resolves to) ─────────────────────── // // `@better-auth/sso` reads the user's email and name off the IdP's answer -// through the provider's own `mapping` (measured on 1.7.12, `dist/index.mjs`): +// through the provider's own `mapping` (measured on the then-installed 1.7.12, `dist/index.mjs`): // // - SAML: email = attribute `mapping.email` (default `email`), else the // NameID; name = `mapping.firstName` (default `givenName`) + `mapping.lastName` diff --git a/packages/plugins/plugin-auth/src/session-tombstone.ts b/packages/plugins/plugin-auth/src/session-tombstone.ts index 7cc3c2b9cbb..3bcf28a96a1 100644 --- a/packages/plugins/plugin-auth/src/session-tombstone.ts +++ b/packages/plugins/plugin-auth/src/session-tombstone.ts @@ -157,7 +157,7 @@ * same kind of trail an interactive revoke leaves, so the reset doors are in * {@link INTERACTIVE_REVOKE_REASON} with their own value, `password_reset`. * The one-step invitation acceptance, which replaces the password of an - * unverified account the same way, records the same value. The seam is the same one: measured against the installed better-auth + * unverified account the same way, records the same value. The seam is the same one: measured against the then-installed better-auth * `1.7.12`, every reset door runs `resetCredentialPassword` * (`dist/utils/password.mjs`), which ends the sessions with * `internalAdapter.deleteUserSessions`; with no `secondaryStorage` that is diff --git a/packages/plugins/plugin-auth/src/sso-provider-lifecycle.ts b/packages/plugins/plugin-auth/src/sso-provider-lifecycle.ts index c6f5b998ce6..9c96ef770fa 100644 --- a/packages/plugins/plugin-auth/src/sso-provider-lifecycle.ts +++ b/packages/plugins/plugin-auth/src/sso-provider-lifecycle.ts @@ -50,8 +50,8 @@ * * ## One domain, one provider * - * Sign-in routes an email address to a provider by its domain. Measured on - * `@better-auth/sso` 1.7.12 (`/sign-in/sso`), in two steps: + * Sign-in routes an email address to a provider by its domain. Measured on the + * then-installed `@better-auth/sso` 1.7.12 (`/sign-in/sso`), in two steps: * * 1. the provider whose whole stored `domain` value equals the address's * domain (a plain equality read, so `eng.acme.com` alone, not diff --git a/packages/plugins/plugin-auth/src/sso-saml-account-key.ts b/packages/plugins/plugin-auth/src/sso-saml-account-key.ts index 117b05e3a09..d04918b29e4 100644 --- a/packages/plugins/plugin-auth/src/sso-saml-account-key.ts +++ b/packages/plugins/plugin-auth/src/sso-saml-account-key.ts @@ -35,7 +35,7 @@ * card): an account keyed on a NameID is still found by the email a sign-in * resolves to, the way any account is. * - * ## How it reaches the vendor (measured on `@better-auth/sso` 1.7.12) + * ## How it reaches the vendor (measured on the then-installed `@better-auth/sso` 1.7.12) * * The vendor's SAML mapping has no member for the account key (its * `samlMappingSchema` is strict: `email`, `emailVerified`, `name`, diff --git a/packages/plugins/plugin-auth/src/sso-saml-standard-claims.ts b/packages/plugins/plugin-auth/src/sso-saml-standard-claims.ts index d5daea1fbf7..02e0848ba70 100644 --- a/packages/plugins/plugin-auth/src/sso-saml-standard-claims.ts +++ b/packages/plugins/plugin-auth/src/sso-saml-standard-claims.ts @@ -33,7 +33,7 @@ * the first one made (and is judged by the platform's linking rules there, * `implicit-account-linking.ts`), instead of making another account. * - * ## How it reaches the vendor (measured on `@better-auth/sso` 1.7.12) + * ## How it reaches the vendor (measured on the then-installed `@better-auth/sso` 1.7.12) * * The vendor reads ONE attribute name per member (`attr(mapping.email || * "email") || extract.nameID`) off the provider's `samlConfig.mapping`, which diff --git a/packages/plugins/plugin-auth/src/sso-sign-in-options.ts b/packages/plugins/plugin-auth/src/sso-sign-in-options.ts index 1ff3553ed69..d9f1d228b2a 100644 --- a/packages/plugins/plugin-auth/src/sso-sign-in-options.ts +++ b/packages/plugins/plugin-auth/src/sso-sign-in-options.ts @@ -25,7 +25,7 @@ * writes the compliance ledger row and a field-level activity line like any * other tracked write. * - * ## How each option reaches the vendor (measured on `@better-auth/sso` 1.7.12) + * ## How each option reaches the vendor (measured on the then-installed `@better-auth/sso` 1.7.12) * * - **OIDC.** The vendor reads `provider.oidcConfig.allowIdpInitiated` off the * provider row (`bounceIfIdpInitiated`): a callback with a `code` and no diff --git a/packages/runtime/src/dispatcher-error-vocabulary.ts b/packages/runtime/src/dispatcher-error-vocabulary.ts index d54b38f3dba..9e40a3ca159 100644 --- a/packages/runtime/src/dispatcher-error-vocabulary.ts +++ b/packages/runtime/src/dispatcher-error-vocabulary.ts @@ -589,7 +589,7 @@ export const UNREGISTERED_CODE_SITES: readonly UnregisteredCodeSite[] = [ door: 'none', verdict: 'foreign-vocabulary', why: - "better-auth 1.7.12's own organization-plugin vocabulary — spelled exactly so in the " + + "the then-installed better-auth 1.7.12's own organization-plugin vocabulary — spelled exactly so in the " + 'installed vendor at `dist/plugins/organization/error-codes.mjs`, the code its own ' + '`/organization/accept-invitation` answers when `requireEmailVerificationOnInvitation` is on ' + "(`crud-invites.mjs`) — and read at runtime off `plugin.$ERROR_CODES`; the local " + From db8aeb10b83e717ef11580e4286010daebb82ccd Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 13:03:55 +0000 Subject: [PATCH 16/20] fix(plugin-auth): admit a change-email link only for the bound account's own session L1 review: the second-factor gate admitted any session, and returned when no data engine was present. It now admits only a caller signed in as the account the token is bound to; a caller signed in as another account gets the same 401 UNAUTHENTICATED. An absent engine refuses, the same as a failed read. Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .../src/change-email-link-second-factor.ts | 22 ++++++++++--------- .../second-factor-code-and-link-doors.test.ts | 16 ++++++++++++++ 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts b/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts index e64c124c4f7..57ac04211cf 100644 --- a/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts +++ b/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts @@ -14,16 +14,17 @@ * The maintainer's ruling: such a link, opened with no session, is refused * before the endpoint runs with the existing `401 UNAUTHENTICATED` and * nothing is written; the account holder signs in (passing the second - * factor) and opens the link again. A signed-in caller is the vendor's to - * judge (since 1.7.29 it refuses a session of another account), and an - * account with no second factor keeps the vendor's link behaviour. + * factor) and opens the link again. Only a session OF THE BOUND ACCOUNT + * admits: a caller signed in as any other account gets the same refusal + * (the vendor refuses that case too, but this guarantee does not rest on + * it). An account with no second factor keeps the vendor's link behaviour. * * Only a token the vendor itself would act on is judged: signed with the * auth secret (HS256), carrying `updateTo` and the bound `userId`. The * session is read through the hook-order-independent `resolveActor`, so a * bearer caller counts as signed in. Enrollment is `sys_user.two_factor_enabled`; - * a read of it that fails refuses (an unreadable enrollment is not taken - * as none). + * a read of it that fails refuses, and so does a host with no data engine + * to read it from (an unreadable enrollment is not taken as none). */ import type { IDataEngine } from '@objectstack/core'; @@ -72,8 +73,9 @@ async function enrolledInSecondFactor(engine: IDataEngine, userId: string): Prom } /** - * Refuse a change-email link opened with no session for an account enrolled - * in a second factor. A no-op on every other path, token and caller. + * Refuse a change-email link for an account enrolled in a second factor + * unless the caller is signed in as that account. A no-op on every other + * path and token, and for the bound account's own session. */ export async function refuseSessionlessChangeEmailLinkForSecondFactor( this: ChangeEmailLinkSecondFactorHost, @@ -82,10 +84,10 @@ export async function refuseSessionlessChangeEmailLinkForSecondFactor( if (ctx?.path !== VERIFY_EMAIL_LINK_PATH) return; const userId = await changeEmailTokenAccount(ctx); if (!userId) return; + const actor = await this.resolveActor(ctx); + if (actor && actor.userId === userId) return; const engine = this.getDataEngine(); - if (!engine) return; - if (await this.resolveActor(ctx)) return; - if (!(await enrolledInSecondFactor(engine, userId))) return; + if (engine && !(await enrolledInSecondFactor(engine, userId))) return; const { APIError } = await import('better-auth/api'); throw new APIError('UNAUTHORIZED', { code: 'UNAUTHENTICATED', message: CHANGE_EMAIL_LINK_SIGN_IN_MESSAGE }); } diff --git a/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts b/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts index 0414b98b90e..96aee71bbd6 100644 --- a/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts +++ b/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts @@ -507,6 +507,22 @@ describe('the address-change link on /verify-email asks an enrolled account to s expect(rig.sessionRowsOf(rig.enrolledId), 'no session was minted').toBe(rowsBefore); }, 60_000); + it.each(TOKEN_TYPES)('%s token, signed in as ANOTHER account: an enrolled account is refused 401 UNAUTHENTICATED and the address does not move', async (_type, extra) => { + const rig = await arrange(); + const other = await rig.post(PASSWORD_SIGN_IN_PATH, { email: PLAIN_EMAIL, password: PASSWORD }); + const otherCookie = cookieHeader(other); + expect(await rig.whoIs({ cookie: otherCookie }), 'the caller holds a session of the other account').toBe(rig.plainId); + const rowsBefore = rig.sessionRowsOf(rig.enrolledId); + + const res = await rig.get(await changeLink(extra, rig.enrolledId), { cookie: otherCookie }); + + expect(res.status, await res.clone().text()).toBe(401); + expect(((await res.clone().json()) as any).code).toBe('UNAUTHENTICATED'); + expect(rowById(rig, rig.enrolledId)?.email, 'the address does not move').toBe(ENROLLED_EMAIL); + await expectNoUsableCredential(rig, res); + expect(rig.sessionRowsOf(rig.enrolledId), 'no session was minted').toBe(rowsBefore); + }, 60_000); + it.each(TOKEN_TYPES)('CONTROL %s token, no session: an account with no second factor follows the vendor link (address moves, no session)', async (_type, extra) => { const rig = await arrange(); const rowsBefore = rig.sessionRowsOf(rig.plainId); From d9acfd4d3373adca1bc97d57733ebcbf85c4deed Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 13:11:12 +0000 Subject: [PATCH 17/20] fix(plugin-auth): keep the engine-less manager's change-email link working Refusing when no data engine is present broke the supported AuthManager on the vendor's own adapter (credential-change-ends-prior-access, 'the clock and the sign-in readings need no data engine'): a plain account's link got 401. The absent-engine branch is restored pending a decision; the identity check stays. Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .../plugin-auth/src/change-email-link-second-factor.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts b/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts index 57ac04211cf..b281f3560cc 100644 --- a/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts +++ b/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts @@ -23,8 +23,8 @@ * auth secret (HS256), carrying `updateTo` and the bound `userId`. The * session is read through the hook-order-independent `resolveActor`, so a * bearer caller counts as signed in. Enrollment is `sys_user.two_factor_enabled`; - * a read of it that fails refuses, and so does a host with no data engine - * to read it from (an unreadable enrollment is not taken as none). + * a read of it that fails refuses (an unreadable enrollment is not taken as + * none). A manager with no data engine does not judge enrollment here. */ import type { IDataEngine } from '@objectstack/core'; @@ -87,7 +87,10 @@ export async function refuseSessionlessChangeEmailLinkForSecondFactor( const actor = await this.resolveActor(ctx); if (actor && actor.userId === userId) return; const engine = this.getDataEngine(); - if (engine && !(await enrolledInSecondFactor(engine, userId))) return; + // No data engine (an AuthManager on the vendor's own adapter, outside this + // plugin): enrollment is not read here and the vendor's answer stands. + if (!engine) return; + if (!(await enrolledInSecondFactor(engine, userId))) return; const { APIError } = await import('better-auth/api'); throw new APIError('UNAUTHORIZED', { code: 'UNAUTHENTICATED', message: CHANGE_EMAIL_LINK_SIGN_IN_MESSAGE }); } From e75528a6bbbdf4e83bf169f671cee7616cec6a23 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 13:41:17 +0000 Subject: [PATCH 18/20] fix(plugin-auth): read second-factor enrollment through the vendor adapter when no engine Ruling A: a manager with no data engine reads the bound account's twoFactorEnabled through internalAdapter.findUserById. An enrolled account's link with no same-account session is refused 401 UNAUTHENTICATED, as is a read that throws or finds no account. The engine-less plain account keeps the vendor's link behaviour. Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .../src/change-email-link-second-factor.ts | 30 ++++++++++++---- .../second-factor-code-and-link-doors.test.ts | 34 +++++++++++++++++++ 2 files changed, 58 insertions(+), 6 deletions(-) diff --git a/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts b/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts index b281f3560cc..a6a20a6663a 100644 --- a/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts +++ b/packages/plugins/plugin-auth/src/change-email-link-second-factor.ts @@ -23,8 +23,11 @@ * auth secret (HS256), carrying `updateTo` and the bound `userId`. The * session is read through the hook-order-independent `resolveActor`, so a * bearer caller counts as signed in. Enrollment is `sys_user.two_factor_enabled`; - * a read of it that fails refuses (an unreadable enrollment is not taken as - * none). A manager with no data engine does not judge enrollment here. + * a manager with no data engine (one on the vendor's own adapter, outside + * this plugin) reads the same account through that adapter + * (`internalAdapter.findUserById`, `twoFactorEnabled`). A read that fails, + * or finds no account, refuses: an unreadable enrollment is not taken as + * none. */ import type { IDataEngine } from '@objectstack/core'; @@ -72,6 +75,21 @@ async function enrolledInSecondFactor(engine: IDataEngine, userId: string): Prom } } +/** + * Enrollment read through the vendor's own adapter, for a manager with no data + * engine. A read that throws, or finds no account, answers `true`. + */ +async function enrolledThroughVendorAdapter(ctx: any, userId: string): Promise { + try { + const user = await ctx?.context?.internalAdapter?.findUserById(userId); + if (!user) return true; + const value = (user as { twoFactorEnabled?: unknown }).twoFactorEnabled; + return value === true || value === 1; + } catch { + return true; + } +} + /** * Refuse a change-email link for an account enrolled in a second factor * unless the caller is signed in as that account. A no-op on every other @@ -87,10 +105,10 @@ export async function refuseSessionlessChangeEmailLinkForSecondFactor( const actor = await this.resolveActor(ctx); if (actor && actor.userId === userId) return; const engine = this.getDataEngine(); - // No data engine (an AuthManager on the vendor's own adapter, outside this - // plugin): enrollment is not read here and the vendor's answer stands. - if (!engine) return; - if (!(await enrolledInSecondFactor(engine, userId))) return; + const enrolled = engine + ? await enrolledInSecondFactor(engine, userId) + : await enrolledThroughVendorAdapter(ctx, userId); + if (!enrolled) return; const { APIError } = await import('better-auth/api'); throw new APIError('UNAUTHORIZED', { code: 'UNAUTHENTICATED', message: CHANGE_EMAIL_LINK_SIGN_IN_MESSAGE }); } diff --git a/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts b/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts index 96aee71bbd6..55fe406c2dc 100644 --- a/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts +++ b/packages/plugins/plugin-auth/src/second-factor-code-and-link-doors.test.ts @@ -549,6 +549,40 @@ describe('the address-change link on /verify-email asks an enrolled account to s }, 60_000); }); +// ─────────────────────────────────────────────────────────────────────────── +describe('the address-change link on a manager with no data engine', () => { + it('an enrolled account (read through the vendor adapter), no session: refused 401 UNAUTHENTICATED, the address does not move', async () => { + vi.spyOn(console, 'warn').mockImplementation(() => {}); + vi.spyOn(console, 'info').mockImplementation(() => {}); + // No `dataEngine`: the manager runs on better-auth's own in-memory adapter. + const manager = new AuthManager({ secret: SECRET, baseUrl: ORIGIN, plugins: { admin: true, twoFactor: true } } as never); + const api: any = await manager.getApi(); + await api.createUser({ body: { email: ENROLLED_EMAIL, name: ENROLLED_EMAIL, password: PASSWORD } }); + const auth: any = await manager.getAuthContext(); + const internal = auth.internalAdapter; + const userId = String((await internal.findUserByEmail(ENROLLED_EMAIL))?.user?.id); + await auth.adapter.update({ model: 'user', where: [{ field: 'id', value: userId }], update: { twoFactorEnabled: true } }); + // Premise: on this composition the vendor adapter exposes enrollment. + expect((await internal.findUserById(userId))?.twoFactorEnabled, 'the vendor adapter reads enrollment').toBe(true); + const sessionsBefore = (await internal.listSessions(userId)).length; + + const { createEmailVerificationToken } = await import('better-auth/api'); + const token = await createEmailVerificationToken(SECRET, ENROLLED_EMAIL, 'moved@example.com', undefined, { + requestType: 'change-email-verification', + userId, + }); + const res = await manager.handleRequest( + new Request(`${BASE}/verify-email?token=${token}`, { method: 'GET', headers: { origin: ORIGIN } }), + ); + + expect(res.status, await res.clone().text()).toBe(401); + expect(((await res.clone().json()) as any).code).toBe('UNAUTHENTICATED'); + expect((await internal.findUserById(userId))?.email, 'the address does not move').toBe(ENROLLED_EMAIL); + expect(res.headers.get('set-auth-token'), 'no bearer token').toBeNull(); + expect((await internal.listSessions(userId)).length, 'no session was minted').toBe(sessionsBefore); + }, 60_000); +}); + // ─────────────────────────────────────────────────────────────────────────── describe('a door call that issues no new session is not a sign-in', () => { it('updatePhoneNumber for a signed-in enrolled account: not challenged, and the session is kept', async () => { From eaa7cf1b50d965588c91c44d77849f4ccad15358 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 16:00:25 +0000 Subject: [PATCH 19/20] fix(plugin-auth): read the blank-role invite caller through resolveActor The merge-group dogfood run showed invitation-blank-role-refusal red: a bearer caller's "member," got 200. The before-hook door read the session with a bare getSessionFromCtx, which runs ahead of bearer()'s conversion and misses every bearer caller; better-auth 1.7.29 then normalizes the list to "member". The door now resolves the caller through the hook-order-independent resolveActor; a bearer pin covers the lane. Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- ...accept-invitation-adopt-membership.test.ts | 24 +++++++++++++++++++ .../src/invite-role-not-found-code.ts | 11 ++++++--- 2 files changed, 32 insertions(+), 3 deletions(-) diff --git a/packages/plugins/plugin-auth/src/accept-invitation-adopt-membership.test.ts b/packages/plugins/plugin-auth/src/accept-invitation-adopt-membership.test.ts index a1518149a48..d4b7e7f35f1 100644 --- a/packages/plugins/plugin-auth/src/accept-invitation-adopt-membership.test.ts +++ b/packages/plugins/plugin-auth/src/accept-invitation-adopt-membership.test.ts @@ -592,6 +592,30 @@ describe('#29158 — invite-member refuses a blank role 400 ROLE_NOT_FOUND, like }); } + // The bearer lane: the global before hook runs ahead of bearer()'s + // conversion, so a bare session read there misses this caller and the + // vendor (1.7.29) normalizes "member," to "member" and answers 200. + it('an empty entry in a role list, from a BEARER caller, is refused 400 ROLE_NOT_FOUND and no invitation row exists', async () => { + const { engine, manager } = await bootWithOwner(); + const signedIn = await post(manager, '/sign-in/email', { email: 'owner@example.com', password: PASSWORD }); + expect(signedIn.status, await signedIn.clone().text()).toBe(200); + const bearer = signedIn.headers.get('set-auth-token'); + expect(bearer, 'the sign-in hands out a bearer token').toBeTruthy(); + const email = 'qa-blank-role-bearer@example.com'; + + const res = await manager.handleRequest( + new Request(`${BASE}/api/v1/auth/organization/invite-member`, { + method: 'POST', + headers: { 'Content-Type': 'application/json', authorization: `Bearer ${bearer}` }, + body: JSON.stringify({ email, role: 'member,', organizationId: DEFAULT_ORG }), + }), + ); + const text = await res.clone().text(); + expect(res.status, text).toBe(400); + expect(((await res.json()) as any).code).toBe('ROLE_NOT_FOUND'); + expect(invitationsFor(engine, email)).toHaveLength(0); + }); + it('a delegated admin\'s blank role answers ROLE_NOT_FOUND too — the blank refusal runs before the role cap', async () => { const { engine, manager } = await bootWithOwner(); const delegate = await signUp(manager, engine, 'delegate.blank@example.com'); diff --git a/packages/plugins/plugin-auth/src/invite-role-not-found-code.ts b/packages/plugins/plugin-auth/src/invite-role-not-found-code.ts index d6c2a2745ef..341dc864215 100644 --- a/packages/plugins/plugin-auth/src/invite-role-not-found-code.ts +++ b/packages/plugins/plugin-auth/src/invite-role-not-found-code.ts @@ -40,6 +40,8 @@ * The vendored library is not patched. */ +import { resolveActor } from './auth-manager-actor-guards.js'; + /** The published endpoint whose refusal this codes. */ export const INVITE_MEMBER_PATH = '/organization/invite-member'; @@ -126,6 +128,9 @@ export function blankInvitationRoleRefusal(requestedRole: unknown): InviteRoleRe * Only a signed-in caller is answered here: without a session the request * falls through, and the vendor answers it the way it answers any * unauthenticated invite. A session read that fails falls through as well. + * The caller is read through the hook-order-independent `resolveActor`, never + * a bare `getSessionFromCtx`: this global `before` hook runs ahead of + * `bearer()`'s conversion, so a bare read misses every bearer caller (#8049). */ export async function refuseBlankInvitationRoleAtTheDoor(ctx: any): Promise { if (ctx?.path !== INVITE_MEMBER_PATH) return; @@ -133,8 +138,8 @@ export async function refuseBlankInvitationRoleAtTheDoor(ctx: any): Promise null); - if (!session) return; + const actor = await resolveActor(ctx).catch(() => null); + if (!actor) return; + const { APIError } = await import('better-auth/api'); throw new APIError('BAD_REQUEST', { message: refusal.message, code: refusal.code }); } From 551ad8ef1b73f7125987c023af98a491e29e0163 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 2 Dec 2026 16:43:08 +0000 Subject: [PATCH 20/20] test(dogfood): external directory under better-auth 1.7.29's invitation-listing rule Ruling A: better-auth 1.7.29 lets only a role holding invitation:create list an organization's invitations. The armed control measures the invitation half as the owner; stage 2 expects an external's list-invitations to be refused 403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS and get-full-organization to answer it no invitations; a new pin keeps its own received invitations on list-user-invitations. The changeset states the narrowing. Claude-Session: https://claude.ai/code/session_012dn2AfG9txpigxdt2zFADB Co-authored-by: Claude --- .changeset/39068-deps-refresh.md | 1 + .../external-member-directory.dogfood.test.ts | 40 +++++++++++++++---- 2 files changed, 33 insertions(+), 8 deletions(-) diff --git a/.changeset/39068-deps-refresh.md b/.changeset/39068-deps-refresh.md index 40a812d14a7..3962d193981 100644 --- a/.changeset/39068-deps-refresh.md +++ b/.changeset/39068-deps-refresh.md @@ -27,6 +27,7 @@ The same release refreshes four runtime dependencies to their latest patch level - The address-change link (`GET /verify-email` with a change-email token) no longer signs anyone in. The new address is marked verified only when the address being left was verified. - A refused authorization-code exchange whose session has ended now leaves the code unspent. The same code keeps answering `400 invalid_request` (`session no longer exists`) until it expires, and it can never mint a token. - Registering a native OAuth client with a plain-http, non-loopback redirect URI is still refused `400 OAUTH_REGISTER_FAILED`. `details.upstreamError` now names `invalid_redirect_uri`. + - Only an organization role that may create invitations may list them. `GET /organization/list-invitations` refuses every other role `403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS`, and `get-full-organization` answers it no invitations; this includes `member` and `external`. A pending invitation id works as a join link, so it is shown only to roles that could mint one. A person's own received invitations stay on `GET /organization/list-user-invitations`. What `@objectstack/plugin-auth` keeps as it was: - The texted sign-in and reset codes are read under the vendor's new identifiers. A password reset by texted code completes, and the checks that read those codes still apply: the account a reset names, and a code texted before a credential change being ended. diff --git a/packages/qa/dogfood/test/external-member-directory.dogfood.test.ts b/packages/qa/dogfood/test/external-member-directory.dogfood.test.ts index f85823e8e96..9cb1f35f60b 100644 --- a/packages/qa/dogfood/test/external-member-directory.dogfood.test.ts +++ b/packages/qa/dogfood/test/external-member-directory.dogfood.test.ts @@ -31,7 +31,13 @@ // - a `controlled_by_parent` detail is not floored on its own: an external // reads the lines of a master shared to it, and no other master's lines; // - list-teams and get-full-organization's teams answer an external the -// teams it sits on; list-invitations answers it its own invitations. +// teams it sits on; +// - list-invitations refuses an external (better-auth 1.7.29: only a role +// holding `invitation:create` may list an organization's invitations, +// because a pending invitation id is a join link), and +// get-full-organization answers it no invitations. An external never sees +// another person's invitation. Its own received invitations stay on +// list-user-invitations, which is pinned below. // // [#25549] A share to an external on a `public_read_write` object: // @@ -266,11 +272,14 @@ describe('[#25233] an external organization member reads its own identity rows a describe: (o) => `invoices ${o.invoices.status}/${o.invoices.ids.length}; lines ${o.lines.status}/${o.lines.ids.length}`, }), armedWhen({ - control: 'the ordinary member is answered both teams and both invitations', + // Since better-auth 1.7.29 only a role holding `invitation:create` + // may list invitations, so the invitation half is measured as the + // owner: the door answers a caller who may read it every invitation. + control: 'the ordinary member is answered both teams, and the owner both invitations', disarmedBy: 'a door that answered nobody would let the external narrowing below pass for free', observe: async () => ({ teams: (await auth('member', `list-teams?organizationId=${orgId}`)).body, - invitations: (await auth('member', `list-invitations?organizationId=${orgId}`)).body, + invitations: (await auth('owner', `list-invitations?organizationId=${orgId}`)).body, }), armed: (o) => Array.isArray(o.teams) && [team.onA, team.other].every((id) => o.teams.some((t: any) => t.id === id)) && @@ -363,11 +372,26 @@ describe('[#25233] an external organization member reads its own identity rows a expect((await auth('supplierB', `list-teams?organizationId=${orgId}`)).body).toEqual([]); }); - it('stage 2: list-invitations answers an external its own invitations only', async () => { - const mine = await auth('supplierA', `list-invitations?organizationId=${orgId}`); - expect(mine.status).toBe(200); - expect(mine.body.map((i: any) => i.email)).toEqual([`suppliera@${DOMAIN}`]); - expect((await auth('supplierB', `list-invitations?organizationId=${orgId}`)).body).toEqual([]); + it('stage 2: list-invitations refuses an external 403 YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS, and get-full-organization answers it no invitations', async () => { + for (const who of ['supplierA', 'supplierB']) { + const res = await auth(who, `list-invitations?organizationId=${orgId}`); + expect(res.status, `${who}: ${JSON.stringify(res.body)}`).toBe(403); + expect(res.body.code ?? res.body.error?.code, who).toBe('YOU_ARE_NOT_ALLOWED_TO_LIST_INVITATIONS'); + } + // supplierA holds an invitation addressed to it, and still reads none here. + const full = await auth('supplierA', `get-full-organization?organizationId=${orgId}`); + expect(full.status).toBe(200); + expect(full.body.invitations ?? []).toEqual([]); + }); + + it('stage 2: list-user-invitations answers an external its own received invitations, and no one else\'s', async () => { + // The vendor answers this door only for a verified address. + await ql.update('sys_user', { id: uid.supplierA, email_verified: true }, { context: SYS }); + const res = await stack.apiAs(token.supplierA, 'GET', '/auth/organization/list-user-invitations'); + const body = await res.json(); + expect(res.status, JSON.stringify(body)).toBe(200); + const inOrg = (body as any[]).filter((i) => String(i.organizationId) === orgId); + expect(inOrg.map((i) => i.email)).toEqual([`suppliera@${DOMAIN}`]); }); it('[#25549] the owner shares one public_read_write invoice with an external, who then reads it and no other', async () => {