mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2025-01-11 14:07:47 +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;
|
_xss = xss;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Task<SpotifyWebAPI> GetWebApi()
|
public Task<SpotifyWebAPI> GetWebApi(bool showDialog = false)
|
||||||
{
|
{
|
||||||
var authentication = new ImplicitGrantAuth
|
var authentication = new ImplicitGrantAuth
|
||||||
{
|
{
|
||||||
RedirectUri = new UriBuilder(_redirectUrl) { Port = _listeningPort }.Uri.OriginalString.TrimEnd('/'),
|
RedirectUri = new UriBuilder(_redirectUrl) { Port = _listeningPort }.Uri.OriginalString.TrimEnd('/'),
|
||||||
ClientId = _clientId,
|
ClientId = _clientId,
|
||||||
Scope = _scope,
|
Scope = _scope,
|
||||||
|
ShowDialog = showDialog,
|
||||||
State = _xss
|
State = _xss
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user