private void ParseJson(string tokenJson, bool shouldWrite = false)
 {
     if (false == tokenJson.IsNullOrWhiteSpace())
     {
         var allTokens = JsonConvert.DeserializeObject<Dictionary<string, string>>(tokenJson);
         foreach (var kvp in allTokens)
         {
             string uriStr = kvp.Key;
             string token = kvp.Value;
             var accessToken = new AccessToken(uriStr, token);
             _tokenDict[accessToken.Uri] = accessToken;
         }
         if (shouldWrite)
         {
             WriteTokenFile();
         }
     }
 }
 public void RegisterToken(string token)
 {
     var accessToken = new AccessToken(CurrentTarget, token);
     _tokenDict[accessToken.Uri] = accessToken;
     WriteTokenFile();
 }