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.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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user