badgateway / oauth2-client

OAuth2 client for Node and browsers
https://www.npmjs.com/package/@badgateway/oauth2-client
MIT License
269 stars 31 forks source link

Better error handling #147

Closed evert closed 1 month ago

evert commented 1 month ago

More robust error handling. When an error is emitted, you now give you access to the emitted HTTP Response and response body.

Also, non-OAuth2 formatted errors were not handled nicely. This should make this a lot easier to handle.

Fixes #146