From 3e4c5cb1af2f6286e941eed2ed66341c8fa1233b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Fri, 12 Jun 2026 16:08:10 +0400 Subject: [PATCH] =?UTF-8?q?v2:=20=D0=BE=D1=82=D0=BB=D0=B0=D0=B4=D0=BA?= =?UTF-8?q?=D0=B0=20exchangeCode=20=E2=80=94=20=D0=BB=D0=BE=D0=B3=D0=B8?= =?UTF-8?q?=D1=80=D1=83=D0=B5=D0=BC=20=D0=BE=D1=82=D0=B2=D0=B5=D1=82=20Key?= =?UTF-8?q?cloak?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- v2/src/auth/index.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0b53d82..4288f43 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ipwhitelist", - "version": "0.5.61", + "version": "0.5.62", "description": "IP WhiteList microservice for cloud provider", "main": "server.js", "scripts": { diff --git a/v2/src/auth/index.js b/v2/src/auth/index.js index 3718f05..c996138 100644 --- a/v2/src/auth/index.js +++ b/v2/src/auth/index.js @@ -105,7 +105,10 @@ async function exchangeCode(code, config) { redirect_uri: redirectUri, }); - return postForm(tokenUrl, body); + const result = await postForm(tokenUrl, body); + console.log("[v2:auth] exchangeCode result keys:", Object.keys(result)); + if (result.error) console.log("[v2:auth] KC error:", JSON.stringify(result).slice(0, 300)); + return result; } /**