From 08bcaa6217815868db48aa37916436a3ca998e1b Mon Sep 17 00:00:00 2001 From: Kieran Bond Date: Thu, 30 Jan 2020 13:55:38 +0000 Subject: [PATCH] Removed old code that was commented out --- .../MiniSpotify/Source/APIRequestor.cs | 33 +------------------ 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/MiniSpotify/MiniSpotify/Source/APIRequestor.cs b/MiniSpotify/MiniSpotify/Source/APIRequestor.cs index 29c820d..c1b22b0 100644 --- a/MiniSpotify/MiniSpotify/Source/APIRequestor.cs +++ b/MiniSpotify/MiniSpotify/Source/APIRequestor.cs @@ -78,41 +78,10 @@ private async void AuthAPI() //https://github.com/JohnnyCrazy/SpotifyAPI-NET //https://johnnycrazy.github.io/SpotifyAPI-NET/auth/implicit_grant.html - //If token isn't set, or has expired if (m_instance.m_authToken == null || m_instance.m_authToken.IsExpired()) { string redirectURI = "http://localhost:4002"; - #region Old Auth method - - //AuthorizationCodeAuth auth = new AuthorizationCodeAuth( - // m_instance.m_clientID, - // m_instance.m_clientSecret, - // redirectURI, - // redirectURI, - // m_accessScopes); - - //auth.AuthReceived += async (sender, payload) => - //{ - // auth.Stop(); //Sender is also the auth instance - - // m_instance.m_authToken = await auth.ExchangeCode(payload.Code); - - // m_spotifyWebAPI = new SpotifyWebAPI() - // { - // //TokenType = payload.TokenType, - // TokenType = m_instance.m_authToken.TokenType, - // //AccessToken = payload.AccessToken - // AccessToken = m_instance.m_authToken.AccessToken, - // UseAuth = true - // }; - - // m_instance.m_pollingTask = Task.Run(PollSongChange);//Start the song change polling - - // m_instance.m_onAuthComplete.Invoke(GetLatestTrack()); - //}; - #endregion - ImplicitGrantAuth auth = new ImplicitGrantAuth( m_instance.m_clientID, redirectURI, @@ -136,7 +105,7 @@ private async void AuthAPI() }; auth.Start();//Starts an internal http server - auth.OpenBrowser();//Opens brower to authenticate app + auth.OpenBrowser();//Opens browser to authenticate app } }