Webservice Connector refresh token updating issue

Hi ,

In one of the webservice connector application, we are using grant type as refresh token.
After commiting the Code into the Git, every time when the changes are done in the git the existing refresh token of the application is updating and the test connection is failing with the below mentioned error.
Can anyone help on this issue , without updating of refresh token.
error:
Exception while updating account. Error: Exception occurred while generating access token: Unable to generate access token. Response returned: {“error”:“invalid_grant”,“error_description”:“expired_client_token”}

Thanks,
Akash

Are you tokenizing or storing some encrypted OAuth data that should be dynamically generated?

try using the below:

<entry key = "accesstoken" value="access_token"/>.

it will store the access token.

Hi @AkashRaavi131

Avoid hardcoding access/refresh tokens in XML/config files, use environment variables or secrets vaults instead.

Exclude tokens from Git using .gitignore
echo “config/secrets.xml” >> .gitignore

Use the correct token storage keys in the Webservice Connector:

<entry key="accesstoken" value="access_token"/>
<entry key="refreshtoken" value="refresh_token"/>

If config files store the token, Git commits may reset them, store tokens externally or ensure they persist across deployments.

Please let me know if you need anything further…

Regards,
Muhammad