Fix embedded server authorization code example (#592)

This commit is contained in:
Chris Sienkiewicz 2021-04-15 08:19:43 -07:00 committed by GitHub
parent dffa6d8746
commit 2d7bcf37b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")
)
);