Skip to content

Commit

Permalink
Update refreshToken when new one is supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
philippn committed Feb 5, 2019
1 parent bc05dd4 commit 6e52688
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NowPlayingKiosk/SpotifyNowPlayingTrackInfoProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public TrackInfo WhatIsNowPlaying()
{
accessToken = authorization.RefreshToken(refreshToken.RefreshToken).Result;
webApi.AccessToken = accessToken.AccessToken;
if (accessToken.RefreshToken != null)
{
refreshToken = accessToken;
}
}

PlaybackContext context = webApi.GetPlayingTrack();
Expand Down

0 comments on commit 6e52688

Please sign in to comment.