@page "/" @inject NavigationManager navManager @using SpotifyAPI.Web
You have a grant total of @_totalPlaylistCount playlists!
} else { To get started: Login via Spotify } @code { private Uri _authUri; private bool _isAuthed; private PrivateUser _me; private int? _totalPlaylistCount; protected override void OnInitialized() { var clientId = Environment.GetEnvironmentVariable("SPOTIFY_CLIENT_ID"); var baseUri = navManager.ToAbsoluteUri(navManager.BaseUri); var loginRequest = new LoginRequest(baseUri, clientId, LoginRequest.ResponseType.Token) { Scope = new[] { Scopes.PlaylistReadPrivate, Scopes.PlaylistReadCollaborative } }; _authUri = loginRequest.ToUri(); } protected override async Task OnInitializedAsync() { var uri = new Uri(navManager.Uri); var maxLen = Math.Min(1, uri.Fragment.Length); Dictionary