auth0 / node-auth0

Node.js client library for the Auth0 platform.
MIT License
637 stars 308 forks source link

feat: parse errors returned by the API #822

Closed frederikprijck closed 1 year ago

frederikprijck commented 1 year ago

Changes

Ensures that when the API returns the expected error details we surface these through an ManagementApiError or AuthApiError instance. If not, we stick to the ResponseError we already have.

Testing

Please describe how this can be tested by reviewers. Be specific about anything not tested and reasons why. If this library has unit and/or integration testing, tests should be added for new functionality and existing tests should complete without errors.

Checklist