fix: proper Spotify token refresh flow, refs: NOISSUE
This commit is contained in:
		@@ -139,7 +139,10 @@ public class SpotifyApiClient
 | 
				
			|||||||
            user.SpotifyAuthAccessToken = oAuthResponse.AccessToken;
 | 
					            user.SpotifyAuthAccessToken = oAuthResponse.AccessToken;
 | 
				
			||||||
            user.SpotifyAuthExpiresAfterSeconds = oAuthResponse.ExpiresIn;
 | 
					            user.SpotifyAuthExpiresAfterSeconds = oAuthResponse.ExpiresIn;
 | 
				
			||||||
            user.SpotifyAuthCreatedAt = oAuthResponse.CreatedAt;
 | 
					            user.SpotifyAuthCreatedAt = oAuthResponse.CreatedAt;
 | 
				
			||||||
 | 
					            if (!string.IsNullOrEmpty(oAuthResponse.RefreshToken))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
                user.SpotifyAuthRefreshToken = oAuthResponse.RefreshToken;
 | 
					                user.SpotifyAuthRefreshToken = oAuthResponse.RefreshToken;
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
            return user.SpotifyAuthAccessToken;
 | 
					            return user.SpotifyAuthAccessToken;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        catch (Exception ex)
 | 
					        catch (Exception ex)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user