Program.cs
/// <summary>
/// Remove any stored token if it was not accepted and try again if attempts remain.
/// </summary>
/// <param name="config"></param>
/// <returns></returns>
Remove any stored token if it was not accepted and try again if attempts remain.
Remove any stored token if it was not accepted and try again if attempts remain .
private static async Task ClearStoredTokenAndRetry(ApiConfig config)
        {
            Storage.Token = null;
            _maxAttempts--;
            await GetTokenAndDoWork(config);
        }
private static async Task ClearStoredTokenAndRetry ( ApiConfig config ) { Storage . Token = null ; _maxAttempts -- ; await GetTokenAndDoWork ( config ) ; }
Remove any stored token if it was not accepted and try again if attempts remain.
Remove any stored token if it was not accepted and try again if attempts remain .
// Clear the invalid stored token. // Recurse to obtain a new token and attempt our work again. Decrement the max attempts counter.
None
config
ApiConfig
None