I am having trouble finding a way to authorize a user using an access token with the re-written RingCentral.NET sdk.
In every example I have found in the documentation, it requires you to authorize the RestClient with a username and password. I would much rather authorize with the password once, store the access token, and then handle token refreshes and authorization by passing in the access token.
For api calls (i.e. RingOut) there is no option to pass an access token as a parameter.
As an example scenario, if someone in my app authorizes their account with a username and password, I encrypt and store the access token. If they for some reason close my app and re-open it within a short time period, I cannot re-authorize the app using the decrypted token that I have stored. I have to pass in the username and password again to get a new token.
It seems to me that there is really no point in having a token when using this SDK, unless I am missing something.
Anybody know how I can accomplish this without storing the user credentials?