Made sure the correct scopes are requested

This commit is contained in:
Jonas Dellinger 2020-05-15 14:05:27 +02:00
parent ff9d03ffb0
commit 9431bb44b5

View File

@ -7,6 +7,7 @@ using SpotifyAPI.Web.Http;
using SpotifyAPI.Web; using SpotifyAPI.Web;
using System.Collections.Generic; using System.Collections.Generic;
using Newtonsoft.Json; using Newtonsoft.Json;
using static SpotifyAPI.Web.Scopes;
namespace CLI namespace CLI
{ {
@ -66,7 +67,7 @@ namespace CLI
var request = new LoginRequest(clientId, LoginRequest.ResponseType.Code) var request = new LoginRequest(clientId, LoginRequest.ResponseType.Code)
{ {
Scope = new List<string> { "user-read-email", "user-read-private" } Scope = new List<string> { UserReadEmail, UserReadPrivate, PlaylistReadPrivate }
}; };
Uri url = _server.BuildLoginUri(request); Uri url = _server.BuildLoginUri(request);