We have a distributed webapi application that uses OAuth token issued by the provider to communicate with an API, its lasts for a specific amount of time,
We are thinking of storing the token in a datastore and retrieving it before making a call to the api, and have a background windows service refreshing the token for every 1hr or so.
Are there are proven patterns on how to refresh the token in a distributed application ?
Thanks -Nen