Getting Access Token & Refresh Token fails in NodeJS but successds in Postman
Hi,
I have a weird problem. When I try to use Oauth to get the access and refresh token for the code, it fails in node. But when I send exactly the same request out in Postman, I get a response that works. Please see my code:
{"status":"BAD_GRANT_TYPE","message":"missing or unknown grant type","correlationId":"deaf1004-dcf0-4365-b36e-a64d2035b1e0","requestId":"3815493a-6286-4448-93d9-c943d58ddbf0"}
When I run this in Postman, like this:
What am I doing wrong? My request is based on what Postman gave me and it seems correct.