Skip to content
Discussion options

You must be logged in to vote

ok went with the following and is working!

      var body = 'grant_type=' + settings.grant_type + '&client_id=' + settings.client_id + '&client_secret=' + settings.client_secret

     
      var options = {
        headers: {'Content-type' : settings.content_type},
        body: body
      }

/*       const res = await got.post(settings.auth_url, options).json();
      return res;   */

      const res = await got.post(settings.auth_url, options);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sindresorhus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #1619 on February 18, 2021 04:25.