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

'c is undefined' #136

Closed obiwanjacobi closed 1 month ago

obiwanjacobi commented 7 months ago

https://github.com/badgateway/oauth2-client/blob/7ce4f29a1c3bfc1547df3326f67a07aeed48ec05/src/client.ts#L427

Shouldn't if (responseBody.error) { read if (responseBody?.error) { because the responseBody might not be retrieved?

evert commented 1 month ago

Fixed with #147