fix: proper Spotify token refresh flow, refs: NOISSUE

This commit is contained in:
simon 2025-07-26 16:32:41 +02:00
parent e38023d790
commit 07c7af4633

View File

@ -139,7 +139,10 @@ public class SpotifyApiClient
user.SpotifyAuthAccessToken = oAuthResponse.AccessToken;
user.SpotifyAuthExpiresAfterSeconds = oAuthResponse.ExpiresIn;
user.SpotifyAuthCreatedAt = oAuthResponse.CreatedAt;
user.SpotifyAuthRefreshToken = oAuthResponse.RefreshToken;
if (!string.IsNullOrEmpty(oAuthResponse.RefreshToken))
{
user.SpotifyAuthRefreshToken = oAuthResponse.RefreshToken;
}
return user.SpotifyAuthAccessToken;
}
catch (Exception ex)