fix: attempted bugfix for crashing process on invalid spotify access token, refs NOISSUE
This commit is contained in:
@@ -110,7 +110,7 @@ public class SpotifyApiClient
|
||||
|
||||
public async Task<string> GetValidAuthorizationTokenAsync(User user)
|
||||
{
|
||||
if (string.IsNullOrEmpty(user.SpotifyAuthAccessToken))
|
||||
if (string.IsNullOrEmpty(user.SpotifyAuthAccessToken) || string.IsNullOrEmpty(user.SpotifyAuthRefreshToken))
|
||||
{
|
||||
// user either never connected Spotify or we failed to refresh token - user needs to re-authenticate
|
||||
return string.Empty;
|
||||
|
Reference in New Issue
Block a user