We are facing an issue related to the Freshdesk OAuth access token regeneration automatically. The APP does not authorize or perform OAuth 2.0 (third-party applications) .The issue is that the access token is expires in a certain period. We are regenerating it periodically but unfortunately the APP does not to regenerate the access token.
I have noticed that there are additional parameters from Zoho Projects documentation that can be passed to the auth URL that can provide a refresh token and skip the prompt next time. Did you try adding “access_type” and “prompt” parameters to “options” objects in the oauth_config.json file?
We have performed the Oauth 2.0 in freshdesk with the third party integration. We are able to get the access token when we install the APP. After some time the access token expires. But the APP is not able to regenerate the access token automatically.
Given all of this, the only thing I can think of is either this is a local simulation issue in FDK. Or, the issue is with how iparams are being handled, which is resulting in the template substitution error.
@Priya_Dharshini can you share how you are handling iparams? (This shouldn’t make a difference, but I just want to be sure.)
I’m yet to check if the refresh successfully happen. I will wait for an hour and confirm that.
But, I noticed refresh_token missing with your current app’s configuration which will definitely fail to refresh the access_token.
Just uninstall the app when you make any OAuth config changes and reinstall the app. We have to find if this is required for sure. But, anyway let’s try to reinstall this time.
I have tested the app after 1 hour after the above-mentioned change. Now, the app is able to refresh the token and works after the access_token expiry as well.
Please reinstall or reauthorize the app after this change and confirm if it works from your end as well.