<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Spotify Web Api Playback Refresh Token problem in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-Web-Api-Playback-Refresh-Token-problem/m-p/5456302#M7008</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Chrome&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(Window)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;I have this Blazor Server app that is playing (in a browser) using the Spotify Web Player. I can get authorized and I get a Token and a RefreshToken and I can successfully use this to play a track. The refreshToken is saved for later.&lt;/P&gt;&lt;P&gt;The problems start when an hour has passed and the token is not valid anymore. I have however supplied a new refreshed token to the routine that plays a track.&lt;/P&gt;&lt;P&gt;I call &lt;A href="https://accounts.spotify.com/api/token" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/api/token with the saved RefreshToken&lt;/A&gt;&amp;nbsp;and get successfully back a Token. This is used in the Play routine that play a track and this is successfull. But when the hour is up I get errors.&lt;/P&gt;&lt;P&gt;The original token starts with&amp;nbsp;BQAN8OXE .... but the refreshed one gets&lt;/P&gt;&lt;P&gt;BQDPgMvMQ (I doubt that this is significiant)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have a clue of what goes wrong here or perhaps example where refresh token is in use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 11:43:27 GMT</pubDate>
    <dc:creator>martinmichaelse</dc:creator>
    <dc:date>2022-11-11T11:43:27Z</dc:date>
    <item>
      <title>Spotify Web Api Playback Refresh Token problem</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-Web-Api-Playback-Refresh-Token-problem/m-p/5456302#M7008</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;DK&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Chrome&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(Window)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;I have this Blazor Server app that is playing (in a browser) using the Spotify Web Player. I can get authorized and I get a Token and a RefreshToken and I can successfully use this to play a track. The refreshToken is saved for later.&lt;/P&gt;&lt;P&gt;The problems start when an hour has passed and the token is not valid anymore. I have however supplied a new refreshed token to the routine that plays a track.&lt;/P&gt;&lt;P&gt;I call &lt;A href="https://accounts.spotify.com/api/token" target="_blank" rel="noopener"&gt;https://accounts.spotify.com/api/token with the saved RefreshToken&lt;/A&gt;&amp;nbsp;and get successfully back a Token. This is used in the Play routine that play a track and this is successfull. But when the hour is up I get errors.&lt;/P&gt;&lt;P&gt;The original token starts with&amp;nbsp;BQAN8OXE .... but the refreshed one gets&lt;/P&gt;&lt;P&gt;BQDPgMvMQ (I doubt that this is significiant)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have a clue of what goes wrong here or perhaps example where refresh token is in use.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 11:43:27 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Spotify-Web-Api-Playback-Refresh-Token-problem/m-p/5456302#M7008</guid>
      <dc:creator>martinmichaelse</dc:creator>
      <dc:date>2022-11-11T11:43:27Z</dc:date>
    </item>
  </channel>
</rss>

