Closed johne closed 6 months ago
Hi @johne, the workaround and updated documentation have been pushed to this branch: https://github.com/intuit/oauth-jsclient/tree/release-4.1.2
Please feel free to validate and/or raise PR if you need to. Thanks
Hi @johne, Release 4.1.2 has been pushed out, please checkout at https://github.com/intuit/oauth-jsclient/releases
closing this issue. please feel free to reopen this if you still see any issues. Thanks
The 4.1.2 artifact on NPM does not appear to contain these latest changes. I'm still not able to successfully make requests with response types other than JSON.
in
createToken
the response fromgetTokenRequest
is anAuthResponse
but this line:turns it into an object which looses all the prototype functions.
according to the documentation here: https://github.com/intuit/oauth-jsclient?tab=readme-ov-file#step-2 you should be able to call
getJson
on the result ofcreateToken
but since it is plain object,getJson
is not a function.a workaround is to just use
.json
to get the json directly.