Closed tylerlong closed 6 months ago
Here is the C# version https://github.com/ringcentral/RingCentral.Net/tree/master/RingCentral.Net.AutoRefresh
I have a prototype for TS, but I think the TokenInfo
class would need additional property expires_at
or smth since the expires_in
has no use when carried over subsequent requests as it's relative to the time token was issued at.
@jeesus I agree. However the TokenInfo class is auto generated base on swagger spec. You may need to sub-class it.
Provide an extension to auto refresh the token.