Exemplo n.º 1
0
 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();
     }));
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 private void Client_OnIncorrectLogin(object sender, TwitchLib.Client.Events.OnIncorrectLoginArgs e)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 4
0
 private void OnIncorrectLogin(object sender, TwitchLib.Client.Events.OnIncorrectLoginArgs e)
 {
     Debug.Log(e.Exception);
 }