Skip to content

Latest commit

 

History

History

RingCentral.Net.AutoRefresh

Auto Refresh Extension

This extension will auto refresh your token every 30 minutes(customizable).

var rc = new RestClient(...);
var autoRefreshExtension = new AutoRefreshExtension(...);
await rc.InstallExtension(autoRefreshExtension);
autoRefreshExtension.Start();

Disclaimer

Token management is a complicated topic. There is no one-fit-all solution. This extension is an quick-and-dirty out-of-box solution to refresh your token. It is by no means the best practice. It simply starts a background timers to refresh your token periodically. For serious production applications, you may need better token management strategy.