Hi @Manpreet Singh , please check whether your
code parameter is consistent with the content of the response. From my testing, the problem may live here.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Hi @Manpreet Singh , changing the grant_type to client_credentails looks like a incorrect authorization flow. And I tested locally with the method you mentioned but no success. would you mind providing a screenshot of getting token successfully?
With this method, I am only getting access token but I want both the refresh and access token, so I can get token again with the help of refresh token. Here are the screenshots:
I have found the problem, I was getting session state at the end of the code and I was copying that along with the code in the post request to get the token, when I remove that I got the token. Sorry, I wasted precious your time, and thanks for the support.
Sign in to comment