static void ResetNiceHashStatsCredentials()
 {
     if (CredentialsSettings.Instance.IsCredentialValid)
     {
         // Reset credentials
         var(btc, worker, group) = CredentialsSettings.Instance.GetCredentials();
         NHWebSocket.ResetCredentials(btc, worker, group);
     }
     else
     {
         // TODO notify invalid credentials?? send state?
         // login without user if credentials are invalid
         NHWebSocket.ResetCredentials();
     }
 }
        static void ResetNiceHashStatsCredentials()
        {
            // check if we have valid credentials
            var state = GetCredentialsValidState();

            if (state == CredentialsValidState.VALID)
            {
                // Reset credentials
                var(btc, worker, group) = ConfigManager.GeneralConfig.GetCredentials();
                NHWebSocket.ResetCredentials(btc, worker, group);
            }
            else
            {
                // TODO notify invalid credentials?? send state?
            }
        }