n8n-nodes-jygse-vw-weconnect 0.2.11 → 0.2.13
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.
|
@@ -298,6 +298,14 @@ async function vwLogin(context, email, password) {
|
|
|
298
298
|
if (currentUrl.includes('/u/login') && stateToken) {
|
|
299
299
|
break;
|
|
300
300
|
}
|
|
301
|
+
// Check if this is an app scheme redirect (don't try to follow)
|
|
302
|
+
if (currentUrl.startsWith('vwconnect://') || currentUrl.startsWith('carnet://') || currentUrl.startsWith('weconnect://')) {
|
|
303
|
+
break;
|
|
304
|
+
}
|
|
305
|
+
// Skip non-http URLs
|
|
306
|
+
if (!currentUrl.startsWith('http') && !currentUrl.startsWith('/')) {
|
|
307
|
+
break;
|
|
308
|
+
}
|
|
301
309
|
// Follow the redirect using API headers
|
|
302
310
|
const followUrl = currentUrl.startsWith('http') ? currentUrl : `https://identity.vwgroup.io${currentUrl}`;
|
|
303
311
|
const followResponse = await context.helpers.httpRequest({
|
|
@@ -422,6 +430,7 @@ async function vwLogin(context, email, password) {
|
|
|
422
430
|
encoding: 'text',
|
|
423
431
|
returnFullResponse: true,
|
|
424
432
|
ignoreHttpStatusErrors: true,
|
|
433
|
+
skipAutoFollowRedirects: true,
|
|
425
434
|
});
|
|
426
435
|
let identifierHtml;
|
|
427
436
|
if (typeof identifierResponse === 'string') {
|
package/package.json
CHANGED