We have configured the OAuth with the help of How to Connect to Salesforce REST API with OAuth 2.0
However, it works only when a new token is generated, but not after it expires.How automate the token refresh.
These are the oAuth Scopes that selected in Salesforce.
Access and manage your data (api)
Provide access to your data via the Web (web)
Can any please help