Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion SpotifyAPI/Web/Auth/WebApiFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ public WebAPIFactory(string redirectUrl, int listeningPort, string clientId, Sco
_xss = xss;
}

public Task<SpotifyWebAPI> GetWebApi()
public Task<SpotifyWebAPI> GetWebApi(bool showDialog = false)
{
var authentication = new ImplicitGrantAuth
{
RedirectUri = new UriBuilder(_redirectUrl) { Port = _listeningPort }.Uri.OriginalString.TrimEnd('/'),
ClientId = _clientId,
Scope = _scope,
ShowDialog = showDialog,
State = _xss
};

Expand Down