Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: patch bump next-auth to 4.24.13 (#11173)

Nimar8a9019115640
diff --git a/ee/package.json b/ee/package.json
index e8b5b1182f..047167489b 100644
--- a/ee/package.json
+++ b/ee/package.json
@@ -28,7 +28,7 @@
"@opentelemetry/api": ">=1.0.0 <1.10.0",
"https-proxy-agent": "^7.0.6",
"next": "15.5.9",
- "next-auth": "^4.24.12",
+ "next-auth": "^4.24.13",
"zod": "^3.25.62"
},
"devDependencies": {
diff --git a/package.json b/package.json
index 74024e6602..24e97509bc 100644
--- a/package.json
+++ b/package.json
@@ -96,7 +96,7 @@
"glob": "^10.5.0"
},
"patchedDependencies": {
}
}
}
diff --git a/packages/shared/package.json b/packages/shared/package.json
index 81ee1a36b8..be449dbca9 100644
--- a/packages/shared/package.json
+++ b/packages/shared/package.json
@@ -94,7 +94,7 @@
"langfuse-langchain": "3.38.6",
"lodash": "^4.17.21",
"lossless-json": "^4.1.1",
- "next-auth": "^4.24.12",
+ "next-auth": "^4.24.13",
"nodemailer": "^7.0.11",
"prisma-extension-kysely": "^3.0.0",
"safe-regex2": "^5.0.0",
diff --git a/patches/[email protected] b/patches/[email protected]
new file mode 100644
index 0000000000..d49733a9ce
--- /dev/null
+++ b/patches/[email protected]
@@ -0,0 +1,38 @@
+diff --git a/core/lib/oauth/client.js b/core/lib/oauth/client.js
+index 52c51eb6ff422dc0899ccec31baf3fa39e42eeae..cb46651ecc4ed8000e57377de378a5d89b29d565 100644
+--- a/core/lib/oauth/client.js
++++ b/core/lib/oauth/client.js
+@@ -1,5 +1,7 @@
+ "use strict";
+
++var HttpsProxyAgent = require('https-proxy-agent').HttpsProxyAgent;
++
+ Object.defineProperty(exports, "__esModule", {
+ value: true
+ });
+@@ -7,7 +9,24 @@ exports.openidClient = openidClient;
+ var _openidClient = require("openid-client");
+ async function openidClient(options) {
+ const provider = options.provider;
+- if (provider.httpOptions) _openidClient.custom.setHttpOptionsDefaults(provider.httpOptions);
++ let httpOptions = {};
++
++ // Preserve existing provider httpOptions
++ if (provider.httpOptions) httpOptions = { ...provider.httpOptions };
++
++ // Optional timeout from environment variable
++ if (process.env.AUTH_SSO_TIMEOUT) {
++ const timeout = parseInt(process.env.AUTH_SSO_TIMEOUT, 10);
++ if (!isNaN(timeout) && timeout > 0) {
++ httpOptions.timeout = timeout;
++ }
++ }
++
++ if (process.env.AUTH_HTTPS_PROXY || process.env.AUTH_HTTP_PROXY) {
++ httpOptions.agent = new HttpsProxyAgent(process.env.AUTH_HTTPS_PROXY || process.env.AUTH_HTTP_PROXY);
++ }
++
++ _openidClient.custom.setHttpOptionsDefaults(httpOptions);
+ let issuer;
+ if (provider.wellKnown) {
+ issuer = await _openidClient.Issuer.discover(provider.wellKnown);
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 9d43b36f89..0ea26d8ae5 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -13,9 +13,9 @@ overrides:
glob: ^10.5.0
patchedDependencies:
- hash: x447yy4qrylml2g7vrfko5ivki
- path: patches/[email protected]
+ hash: g7rpu2soo4na5splvh6zgnobma
+ path: patches/[email protected]
importers:
@@ -58,8 +58,8 @@ importers:
specifier: 15.5.9
next-auth:
- specifier: ^4.24.12
+ specifier: ^4.24.13
zod:
specifier: ^3.25.62
version: 3.25.62
@@ -247,8 +247,8 @@ importers:
specifier: ^4.1.1
version: 4.1.1
next-auth:
- specifier: ^4.24.12
+ specifier: ^4.24.13
nodemailer:
specifier: ^7.0.11
version: 7.0.11
@@ -411,7 +411,7 @@ importers:
'@next-auth/prisma-adapter':
specifier: ^1.0.7
'@opentelemetry/api':
specifier: ^1.9.0
version: 1.9.0
@@ -659,8 +659,8 @@ importers:
specifier: 15.5.9
next-auth:
- specifier: ^4.24.12
+ specifier: ^4.24.13
next-query-params:
specifier: ^5.1.0
@@ -10995,10 +10995,10 @@ packages:
resolution: {integrity: sha512-NHDDGYudnvRutt/VhKFlX26IotXe1w0cmkDm6JGquh5bz/bDTw0LufSmH/GxTjEdpHEO+bVKFTwdrcGa/9XlKQ==}
engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
- resolution: {integrity: sha512-wooJAL5Md9Fn2UwUI2qN9TY/+k8HJGRyi3TdSt/xHfDTtdpPxDqmo4v8hUrKGb+d66FB/rYy9RutA/9EeJrK0Q==}
+ resolution: {integrity: sha512-sgObCfcfL7BzIK76SS5TnQtc3yo2Oifp/yIpfv6fMfeBOiBJkDWF3A2y9+yqnmJ4JKc2C+nMjSjmgDeTwgN1rQ==}
peerDependencies:
- '@auth/core': 0.34.2
+ '@auth/core': 0.34.3
next: ^12.2.5 || ^13 || ^14 || ^15 || ^16
nodemailer: ^7.0.7
react: ^17.0.2 || ^18 || ^19
@@ -17987,7 +17987,7 @@ snapshots:
dependencies:
- '@babel/runtime': 7.28.3
+ '@babel/runtime': 7.28.4
'@mui/utils': 7.3.1(@types/[email protected])([email protected])
prop-types: 15.8.1
react: 19.2.3
@@ -17996,7 +17996,7 @@ snapshots:
dependencies:
- '@babel/runtime': 7.28.3
+ '@babel/runtime': 7.28.4
'@emotion/cache': 11.14.0
'@emotion/serialize': 1.3.3
'@emotion/sheet': 1.4.0
@@ -18096,10 +18096,10 @@ snapshots:
'@tybys/wasm-util': 0.10.1
optional: true
dependencies:
dependencies:
@@ -22166,7 +22166,7 @@ snapshots:
eslint-import-resolver-typescript: 3.6.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])([email protected])
eslint-plugin-eslint-comments: 3.2.0([email protected])
- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])
eslint-plugin-jsx-a11y: 6.8.0([email protected])
@@ -24400,7 +24400,7 @@ snapshots:
dependencies:
- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])
dependencies:
@@ -24431,7 +24431,7 @@ snapshots:
enhanced-resolve: 5.17.1
eslint: 8.57.0
- eslint-plugin-import: 2.29.1(@typescript-eslint/[email protected]([email protected])([email protected]))([email protected])
fast-glob: 3.3.3
get-tsconfig: 4.10.1
is-core-module: 2.15.1
@@ -24464,16 +24464,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- debug: 3.2.7
- optionalDependencies:
- '@typescript-eslint/parser': 8.48.1([email protected])([email protected])
- eslint: 8.57.0
- eslint-import-resolver-node: 0.3.9
- transitivePeerDependencies:
- - supports-color
-
dependencies:
'@eslint-community/eslint-utils': 4.9.0([email protected])
@@ -24487,7 +24477,7 @@ snapshots:
eslint: 8.57.0
ignore: 5.3.2
dependencies:
array-includes: 3.1.7
array.prototype.findlastindex: 1.2.4
@@ -24497,7 +24487,7 @@ snapshots:
doctrine: 2.1.0
eslint: 8.57.0
eslint-import-resolver-node: 0.3.9
hasown: 2.0.2
is-core-module: 2.15.1
is-glob: 4.0.3
@@ -24508,7 +24498,7 @@ snapshots:
semver: 6.3.1
tsconfig-paths: 3.15.0
optionalDependencies:
- '@typescript-eslint/parser': 8.48.1([email protected])([email protected])
+ '@typescript-eslint/parser': 7.12.0([email protected])([email protected])
transitivePeerDependencies:
- eslint-import-resolver-typescript
- eslint-import-resolver-webpack
@@ -24935,7 +24925,7 @@ snapshots:
dependencies:
- debug: 4.3.4
+ debug: 4.4.3
get-stream: 5.2.0
yauzl: 2.10.0
optionalDependencies:
@@ -27696,7 +27686,7 @@ snapshots:
dependencies:
type-fest: 2.19.0
dependencies:
'@babel/runtime': 7.28.4
'@panva/hkdf': 1.2.1
diff --git a/web/package.json b/web/package.json
index 725bf6ca91..5dcf87fd8d 100644
--- a/web/package.json
+++ b/web/package.json
@@ -129,7 +129,7 @@
"lucide-react": "^0.552.0",
"nanoid": "^3.3.8",
"next": "15.5.9",
- "next-auth": "^4.24.12",
+ "next-auth": "^4.24.13",
"next-query-params": "^5.1.0",
"next-themes": "^0.4.6",
"posthog-js": "^1.273.1",