Skip to content

Commit 9431bb4

Browse files
committed
Made sure the correct scopes are requested
1 parent ff9d03f commit 9431bb4

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎SpotifyAPI.Web.Examples/CLI/Program.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
using SpotifyAPI.Web;
88
using System.Collections.Generic;
99
using Newtonsoft.Json;
10+
using static SpotifyAPI.Web.Scopes;
1011

1112
namespace CLI
1213
{
@@ -66,7 +67,7 @@ private static async Task StartAuthentication()
6667

6768
var request = new LoginRequest(clientId, LoginRequest.ResponseType.Code)
6869
{
69-
Scope = new List<string> { "user-read-email", "user-read-private" }
70+
Scope = new List<string> { UserReadEmail, UserReadPrivate, PlaylistReadPrivate }
7071
};
7172

7273
Uri url = _server.BuildLoginUri(request);

0 commit comments

Comments
 (0)