Grant type | Reason |
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.