Skip to content

Commit 2d7bcf3

Browse files
authored
Fix embedded server authorization code example (#592)
1 parent dffa6d8 commit 2d7bcf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SpotifyAPI.Docs/docs/authorization_code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public static async Task Main()
8686
{
8787
Scope = new List<string> { Scopes.UserReadEmail }
8888
};
89-
BrowserUtil.Open(uri);
89+
BrowserUtil.Open(request.ToUri());
9090
}
9191

9292
private static async Task OnAuthorizationCodeReceived(object sender, AuthorizationCodeResponse response)
@@ -96,7 +96,7 @@ private static async Task OnAuthorizationCodeReceived(object sender, Authorizati
9696
var config = SpotifyClientConfig.CreateDefault();
9797
var tokenResponse = await new OAuthClient(config).RequestToken(
9898
new AuthorizationCodeTokenRequest(
99-
"ClientId", "ClientSecret", response.Code, "http://localhost:5000/callback"
99+
"ClientId", "ClientSecret", response.Code, new Uri("http://localhost:5000/callback")
100100
)
101101
);
102102

0 commit comments

Comments
 (0)