<?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 Re: Authorization Code Flow Refresh Tokens in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-Refresh-Tokens/m-p/5229797#M2810</link>
    <description>&lt;P&gt;Yes I am always storing the refresh token if it comes back. I will check out the PKCE way of doing things and see if that works.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Jul 2021 19:27:10 GMT</pubDate>
    <dc:creator>jhyde01</dc:creator>
    <dc:date>2021-07-01T19:27:10Z</dc:date>
    <item>
      <title>Authorization Code Flow Refresh Tokens</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-Refresh-Tokens/m-p/5228753#M2789</link>
      <description>&lt;P&gt;I am building an application which requires the refreshing of user Spotify stats (followers, playlists, etc) on a weekly basis. About two months after a user gives my web application access to their Spotify, I begin to get errors regarding the token no longer being valid, and when I attempt to refresh the token am not able to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation states "&lt;SPAN&gt;A new refresh token might be returned too." on&amp;nbsp;&lt;A href="https://community.spotify.com/t5/forums/postpage/board-id/Spotify_Developer" target="_blank" rel="noopener"&gt;https://community.spotify.com/t5/forums/postpage/board-id/Spotify_Developer&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Under what circumstances will a new refresh token be provided when you refresh a token?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anyway around this to always get a new refresh token?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Jun 2021 14:37:31 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-Refresh-Tokens/m-p/5228753#M2789</guid>
      <dc:creator>jhyde01</dc:creator>
      <dc:date>2021-06-29T14:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Code Flow Refresh Tokens</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-Refresh-Tokens/m-p/5228916#M2793</link>
      <description>&lt;P&gt;Because the documentation does not specify when a new refresh token is returned, your app should always check if a new one is returned after you refresh the access token. If a new refresh token is returned then you should replace the old one with the new one in your persistent storage. Are you doing this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try using the &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization-guide/#authorization-code-flow-with-proof-key-for-code-exchange-pkce" target="_self"&gt;Authorization Code Flow with Proof Key for Code Exchange&lt;/A&gt;, which always returns a new refresh token after you refresh the access token.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jun 2021 00:12:23 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-Refresh-Tokens/m-p/5228916#M2793</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2021-06-30T00:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Code Flow Refresh Tokens</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-Refresh-Tokens/m-p/5229797#M2810</link>
      <description>&lt;P&gt;Yes I am always storing the refresh token if it comes back. I will check out the PKCE way of doing things and see if that works.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jul 2021 19:27:10 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-Refresh-Tokens/m-p/5229797#M2810</guid>
      <dc:creator>jhyde01</dc:creator>
      <dc:date>2021-07-01T19:27:10Z</dc:date>
    </item>
  </channel>
</rss>

