mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2025-01-11 06:07:45 +00:00
Allow users to set ShowDialog when using WebAPIFactory (#239)
This commit is contained in:
parent
e661d8f35b
commit
91b088169b
@ -42,13 +42,14 @@ namespace SpotifyAPI.Web.Auth
|
||||
_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
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user