From 91b088169b869adcfaf732cc52356a9fb4fb18e7 Mon Sep 17 00:00:00 2001 From: Alessandro Attard Barbini <11708634+aleab@users.noreply.github.com> Date: Tue, 24 Apr 2018 17:19:06 +0200 Subject: [PATCH] Allow users to set ShowDialog when using WebAPIFactory (#239) --- SpotifyAPI/Web/Auth/WebApiFactory.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SpotifyAPI/Web/Auth/WebApiFactory.cs b/SpotifyAPI/Web/Auth/WebApiFactory.cs index 55c11d31..94e21980 100644 --- a/SpotifyAPI/Web/Auth/WebApiFactory.cs +++ b/SpotifyAPI/Web/Auth/WebApiFactory.cs @@ -42,13 +42,14 @@ namespace SpotifyAPI.Web.Auth _xss = xss; } - public Task GetWebApi() + public Task 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 };