n8n-nodes-jygse-vw-weconnect 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -199,6 +199,7 @@ async function vwLogin(context, email, password) {
|
|
|
199
199
|
state: state,
|
|
200
200
|
});
|
|
201
201
|
// Use browser-like headers for initial request
|
|
202
|
+
// Let n8n follow redirects automatically to reach the login page
|
|
202
203
|
const authorizeResponse = await context.helpers.httpRequest({
|
|
203
204
|
method: 'GET',
|
|
204
205
|
url: `${authorizeUrl}?${authorizeParams.toString()}`,
|
|
@@ -206,7 +207,7 @@ async function vwLogin(context, email, password) {
|
|
|
206
207
|
encoding: 'text',
|
|
207
208
|
returnFullResponse: true,
|
|
208
209
|
ignoreHttpStatusErrors: true,
|
|
209
|
-
|
|
210
|
+
// Don't skip redirects - let it follow to the login page
|
|
210
211
|
});
|
|
211
212
|
// Extract response body and check for redirect
|
|
212
213
|
let htmlContent;
|
package/package.json
CHANGED