Hello,
We are trying to use the Zoho CRM SDK version 7.0 for Node.js, with an API Self Client. We have our Self Client ID and secret saved, and have generated 2 different refresh tokens.
Every time the SDK tries to get an access token using either of the refresh tokens, we get an invalid_code exception: "SDKException [Error]: invalid_code". We are also able to reproduce this by manually trying to generate an access token with cURL. (Client ID, Secret and Refresh Token have been removed)
- curl --location 'https://accounts.zoho.com/oauth/v2/token' \
--form 'client_id="1000.CLIENT_ID"' \
--form 'client_secret="CLIENT_SECRET"' \
--form 'grant_type="refresh_token"' \
--form 'code="1000.REFRESH_TOKEN"' - {"error":"invalid_code"}
How do we go about addressing this issue so that we can use the SDK?
Thank you for your help!