private void Client_OnIncorrectLogin(object sender, TwitchLib.Client.Events.OnIncorrectLoginArgs e) { Console.WriteLine("Connection error! Likely bad credentials."); window.Dispatcher.Invoke(new Action(() => { new ErrorWindow("There was a problem authenticating your credentials. Check your oauth key!").ShowDialog(); new Startup().Show(); window.Close(); })); }
private void Client_OnIncorrectLogin(object sender, TwitchLib.Client.Events.OnIncorrectLoginArgs e) { var botTokens = api.V5.Auth.RefreshAuthTokenAsync(Credentials.botRefreshToken, "0osemzvzybmaunf9tvz78iag3sfhlw", api.Settings.ClientId).GetAwaiter().GetResult(); var authTokens = api.V5.Auth.RefreshAuthTokenAsync(Credentials.authRefreshToken, "0osemzvzybmaunf9tvz78iag3sfhlw", api.Settings.ClientId).GetAwaiter().GetResult(); Credentials.UpdateTokens(credentialsPath, botTokens.AccessToken, authTokens.AccessToken, botTokens.RefreshToken, authTokens.RefreshToken); /*closing = true; * client.Disconnect(); * Connect(true); * closing = false; */ Restart(true); }
private void Client_OnIncorrectLogin(object sender, TwitchLib.Client.Events.OnIncorrectLoginArgs e) { throw new NotImplementedException(); }
private void OnIncorrectLogin(object sender, TwitchLib.Client.Events.OnIncorrectLoginArgs e) { Debug.Log(e.Exception); }