Skip to content

Commit a2b9453

Browse files
author
Jonas Dellinger
committed
Restore example
1 parent 734c051 commit a2b9453

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

SpotifyAPI.Web.Example/Program.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,7 @@ static void Main(string[] args)
2828
AuthorizationCodeAuth auth =
2929
new AuthorizationCodeAuth(_clientId, _secretId, "http://localhost:4002", "http://localhost:4002",
3030
Scope.PlaylistReadPrivate | Scope.PlaylistReadCollaborative);
31-
auth.AuthReceived += async (sender, payload) =>
32-
{
33-
auth.Stop();
34-
Token token = await auth.ExchangeCode(payload.Code);
35-
SpotifyWebAPI api = new SpotifyWebAPI() {TokenType = token.TokenType, AccessToken = token.AccessToken};
36-
};
31+
auth.AuthReceived += AuthOnAuthReceived;
3732
auth.Start();
3833
auth.OpenBrowser();
3934

0 commit comments

Comments
 (0)