Closed obiwanjacobi closed 1 month 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?
if (responseBody.error) {
if (responseBody?.error) {
responseBody
Fixed with #147
https://github.com/badgateway/oauth2-client/blob/7ce4f29a1c3bfc1547df3326f67a07aeed48ec05/src/client.ts#L427
Shouldn't
if (responseBody.error) {
readif (responseBody?.error) {
because theresponseBody
might not be retrieved?