initial production version
This commit is contained in:
18
patches/@auth+core+0.34.3.patch
Normal file
18
patches/@auth+core+0.34.3.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
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) {
|
||||
Reference in New Issue
Block a user