mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 14:46:26 +00:00
Fix embedded server authorization code example (#592)
This commit is contained in:
parent
dffa6d8746
commit
2d7bcf37b9
@ -86,7 +86,7 @@ public static async Task Main()
|
||||
{
|
||||
Scope = new List<string> { Scopes.UserReadEmail }
|
||||
};
|
||||
BrowserUtil.Open(uri);
|
||||
BrowserUtil.Open(request.ToUri());
|
||||
}
|
||||
|
||||
private static async Task OnAuthorizationCodeReceived(object sender, AuthorizationCodeResponse response)
|
||||
@ -96,7 +96,7 @@ private static async Task OnAuthorizationCodeReceived(object sender, Authorizati
|
||||
var config = SpotifyClientConfig.CreateDefault();
|
||||
var tokenResponse = await new OAuthClient(config).RequestToken(
|
||||
new AuthorizationCodeTokenRequest(
|
||||
"ClientId", "ClientSecret", response.Code, "http://localhost:5000/callback"
|
||||
"ClientId", "ClientSecret", response.Code, new Uri("http://localhost:5000/callback")
|
||||
)
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user