OAuth input not showing in local test run

We have created a custom app that uses OAuth 2.0. The client id and client secret need to be filled out by Freshservice admin during installation, so we have created the following:

iparams.json

{
“chatPrompt”: {
“display_name”: “Chat Prompt”,
“type”: “paragraph”,
“required”: true
}
}

oauth_config.json

{
“integrations”: {
“Test”: {
“display_name”: “Test”,
“client_id”: “<%= oauth_iparams.client_id %>”,
“client_secret”: “<%= oauth_iparams.client_secret %>”,
“authorize_url”: “https://test.com/oauth2/authorize”,
“token_url”: “https://test.com/oauth2/token”,
“oauth_iparams”: {
“client_id”: {
“display_name”: “Client ID”,
“description”: “Please enter your client ID”,
“type”: “text”,
“required”: true
},
“client_secret”: {
“display_name”: “Client Secret”,
“description”: “Please enter your client secret”,
“type”: “text”,
“required”: true
}
},
“token_type”: “agent”
}
}
}

But when we test this app locally using fdk run, the OAuth inputs for client_id and client_secret are not appearing. When we upload the app to a Freshservice account and access the installation page there, it works without issues.

Hello @chrism

If you are testing your OAuth app on a local server using fdk run, the OAuth iparam loads only the first time. Once you configure the Client ID and Client Secret, the same values will be used on subsequent runs. If you want the Oauth iparam to load again, you need to clear the data stored in the local storage file located in the .fdk folder in your project directory

Hello @Kithiyon,

I have deleted the .fdk folder and then ran the app again, but the OAuth iparam inputs are still not showing up.