v2: отладка exchangeCode — логируем ответ Keycloak
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user