Files
wishlist/patches/@auth+core+0.34.3.patch
2025-11-25 16:08:50 +01:00

19 lines
821 B
Diff

diff --git a/node_modules/@auth/core/lib/utils/env.js b/node_modules/@auth/core/lib/utils/env.js
index 1234567..abcdefg 100644
--- a/node_modules/@auth/core/lib/utils/env.js
+++ b/node_modules/@auth/core/lib/utils/env.js
@@ -44,7 +44,12 @@ export function setEnvDefaults(envObject, config) {
return finalProvider;
});
}
-export function createActionURL(action, protocol, headers, envObject, basePath) {
+export function createActionURL(action, protocol, headers, envObject, configOrBasePath) {
+ // Fix: Extract basePath from config object if needed
+ const basePath = typeof configOrBasePath === 'object' && configOrBasePath !== null
+ ? configOrBasePath.basePath
+ : configOrBasePath;
+
let envUrl = envObject.AUTH_URL ?? envObject.NEXTAUTH_URL;
let url;
if (envUrl) {