I am trying to connect my drupal using OAuth Token. I am able to successfully do it using PostMan with OAuth1 Authentication set as header. In my javascript app, I am using Fetch for get request, the issue is how to you add the header. In php one can use GuzzleHttp\Subscriber\Oauth\Oauth1; Class (Ref)
But how to do this in my JS App? what library can I use for generating proper header compatible with OAuth using Consumer Secret and Client Key
Sample JS Code
return fetch('http://d8.epicureans.in/node/1?_format=json', {'mode': 'no-cors',
method: 'get',
headers: {},
})