Not able to refresh OAuth access token automatically

@Priya_Dharshini I created a Zoho Projects account and tested it.

The refresh token is not being returned to the platform if the following parameters are not used in the configuration.

access_type=offline
prompt=consent

Could you check with the following configuration once?

  {
  "client_id": "<YOUR CLIENT ID>",
  "client_secret": "<YOUR CLIENT SECRET>",
  "authorize_url": "https://accounts.zoho.com/oauth/v2/auth",
  "token_url": "https://accounts.zoho.com/oauth/v2/token",
  "options": {
     "scope": "ZohoBugTracker.portals.READ,ZohoBugTracker.bugs.UPDATE,ZohoBugTracker.projects.READ,ZohoBugTracker.bugs.READ,ZohoBugTracker.bugs.CREATE,ZohoProjects.projects.ALL,ZohoProjects.portals.READ",
     "access_type": "offline",
     "prompt": "consent"
  },
  "token_type": "account"
 }

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.

3 Likes