fix: proper Spotify token refresh flow, refs: NOISSUE
This commit is contained in:
parent
e38023d790
commit
07c7af4633
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user