public bool VerifyLogin(string username, string password) { ShareSettings.Default.Reload(); AccessToken = ShareSettings.Default.TwitchAccessToken; if (VerifyAccessToken()) { Chat = new TwitchChat(AccessToken); return(true); } else { var form = new TwitchOAuthForm(); form.ShowDialog(); AccessToken = form.AccessToken; var verified = VerifyAccessToken(); if (verified) { Chat = new TwitchChat(AccessToken); } return(verified); } }
public bool VerifyLogin() { AccessToken = WebCredentials.TwitchAccessToken; if (VerifyAccessToken()) { return(true); } var form = new TwitchOAuthForm(); form.ShowDialog(); AccessToken = form.AccessToken; var verified = VerifyAccessToken(); return(verified); }
public bool VerifyLogin() { ShareSettings.Default.Reload(); AccessToken = ShareSettings.Default.TwitchAccessToken; if (VerifyAccessToken()) { return(true); } else { var form = new TwitchOAuthForm(); form.ShowDialog(); AccessToken = form.AccessToken; var verified = VerifyAccessToken(); return(verified); } }
public bool VerifyLogin() { ShareSettings.Default.Reload(); AccessToken = ShareSettings.Default.TwitchAccessToken; if (VerifyAccessToken()) { return true; } else { var form = new TwitchOAuthForm(); form.ShowDialog(); AccessToken = form.AccessToken; var verified = VerifyAccessToken(); return verified; } }