If the grant_type is authorization_code
You will get the invalid_code error when you try to reuse or use an expired code. The code value generated using /oauth/v2/auth is valid only for two minutes and is only one time usable.
If the grant_type is refresh_token
You will get an invalid_code error if the users have manually revoked their refresh token either during password reset or via Connected Apps, Devices sign-in. Refresh tokens don't expire unless you manually delete them.
If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.
Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.
Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.
Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.
Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.
Make the most of Zoho CRM with these useful tips.