Skip to content

Commit 91b0881

Browse files
aleabJohnnyCrazy
authored andcommitted
Allow users to set ShowDialog when using WebAPIFactory (#239)
1 parent e661d8f commit 91b0881

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

SpotifyAPI/Web/Auth/WebApiFactory.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,14 @@ public WebAPIFactory(string redirectUrl, int listeningPort, string clientId, Sco
4242
_xss = xss;
4343
}
4444

45-
public Task<SpotifyWebAPI> GetWebApi()
45+
public Task<SpotifyWebAPI> GetWebApi(bool showDialog = false)
4646
{
4747
var authentication = new ImplicitGrantAuth
4848
{
4949
RedirectUri = new UriBuilder(_redirectUrl) { Port = _listeningPort }.Uri.OriginalString.TrimEnd('/'),
5050
ClientId = _clientId,
5151
Scope = _scope,
52+
ShowDialog = showDialog,
5253
State = _xss
5354
};
5455

0 commit comments

Comments
 (0)