n8n-nodes-jygse-vw-weconnect 0.2.10 → 0.2.12
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({
|
|
@@ -574,13 +582,15 @@ async function vwLogin(context, email, password) {
|
|
|
574
582
|
extractTokens(redirectUrl);
|
|
575
583
|
}
|
|
576
584
|
while (maxRedirects > 0 && redirectUrl && !authCode) {
|
|
577
|
-
// Check if this is the final redirect to carnet://
|
|
578
|
-
if (redirectUrl.startsWith('carnet://') || redirectUrl.startsWith('weconnect://')) {
|
|
585
|
+
// Check if this is the final redirect to app scheme (carnet://, weconnect://, vwconnect://)
|
|
586
|
+
if (redirectUrl.startsWith('carnet://') || redirectUrl.startsWith('weconnect://') || redirectUrl.startsWith('vwconnect://')) {
|
|
579
587
|
extractTokens(redirectUrl);
|
|
580
588
|
break;
|
|
581
589
|
}
|
|
582
|
-
// Skip non-http redirects
|
|
590
|
+
// Skip non-http redirects (other app schemes)
|
|
583
591
|
if (!redirectUrl.startsWith('http') && !redirectUrl.startsWith('/')) {
|
|
592
|
+
// Try to extract tokens from unknown scheme redirect
|
|
593
|
+
extractTokens(redirectUrl);
|
|
584
594
|
break;
|
|
585
595
|
}
|
|
586
596
|
const followResponse = await context.helpers.httpRequest({
|
package/package.json
CHANGED