bdy 1.25.30-stage → 1.25.31-beta
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.
- package/distTs/package.json +1 -1
- package/distTs/src/api/client.js +2 -1
- package/package.json +1 -1
package/distTs/package.json
CHANGED
package/distTs/src/api/client.js
CHANGED
|
@@ -257,7 +257,8 @@ class ApiClient {
|
|
|
257
257
|
const json = await responseBody.json();
|
|
258
258
|
logger_1.default.debug('API CLIENT PARSED RESPONSE:');
|
|
259
259
|
logger_1.default.debug(json);
|
|
260
|
-
|
|
260
|
+
// OAuth endpoints (RFC 6749, RFC 7591) report error + error_description.
|
|
261
|
+
const value = json?.errors?.[0]?.message ?? json?.error_description ?? json?.error;
|
|
261
262
|
if (typeof value === 'string')
|
|
262
263
|
message = value;
|
|
263
264
|
}
|