I'm using simple-oauth2 in this example to query Microsoft Graph. All works well so far. But when I try to refresh the access token var newToken = await storedToken.refresh();
, I get an error:
The content-type is not JSON compatible
This is thrown in wreck
's index.js
and it seems like there is no content-type
set in the headers, while the mode
is set to strict
. The problem is, that I have no idea how to change this or why this is happening. It only happens on refresh()
.