From 9d5018a51d01ddc4a275a05834211931b5a553c8 Mon Sep 17 00:00:00 2001 From: Martijn Poppen Date: Thu, 12 Dec 2024 09:35:40 +0100 Subject: [PATCH] FIX: Accept consent when login in The Consent was changed and it seems like the API only accepts a German consent. So that's what I changed and VW, AUDI, SEAT and CUPRA are working again. --- main.js | 37 ++++++++++++++++++++----------------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/main.js b/main.js index 83eb5b4..4fa88ef 100644 --- a/main.js +++ b/main.js @@ -683,22 +683,24 @@ class VwWeconnect extends utils.Adapter { //check for empty form object if (Object.keys(form).length === 0 && form.constructor === Object) { try { - const stringJson = body - .split("window._IDK = ")[1] - .split("