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) {