bdy 1.25.30-stage → 1.25.31-stage

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.25.30-stage",
4
+ "version": "1.25.31-stage",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "homepage": "https://buddy.works/docs/cli",
@@ -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
- const value = json?.errors?.[0]?.message;
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
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.25.30-stage",
4
+ "version": "1.25.31-stage",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "homepage": "https://buddy.works/docs/cli",