intuit / oauth-jsclient

Intuit's NodeJS OAuth client provides a set of methods to make it easier to work with OAuth2.0 and Open ID
https://developer.intuit.com/
Apache License 2.0
119 stars 153 forks source link

fix getting key from response of getKeyFromJWKsURI #172

Closed KindBear closed 2 months ago

KindBear commented 2 months ago

I had an issue when trying to validate token

There was an error

"undefined" is not a valid JSON

The issue was in getting the "body" field from Axios response. But it hasn't a "body" field. It has a "data" field.

rajeshgupta723 commented 2 months ago

@KindBear Thanks, this PR has been merged.