<?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 Confused about access token refresh in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Confused-about-access-token-refresh/m-p/5603872#M9838</link>
    <description>&lt;P&gt;I have an application that simply searches Spotify. It &lt;STRONG&gt;does not retrieve any user data&lt;/STRONG&gt;. I believe that this only requires 'client credentials' and does not require a refresh token. Indeed, I have this working (I am using a Java library right now - Spotify Web API Java) to access the API).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the access token I get apparently expires in one hour anyway.&lt;/P&gt;&lt;P&gt;If this is true, how do I refresh my access? Or do I not need to do that? Very confused.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Sun, 02 Jul 2023 19:17:59 GMT</pubDate>
    <dc:creator>Quo_Vadis</dc:creator>
    <dc:date>2023-07-02T19:17:59Z</dc:date>
    <item>
      <title>Confused about access token refresh</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Confused-about-access-token-refresh/m-p/5603872#M9838</link>
      <description>&lt;P&gt;I have an application that simply searches Spotify. It &lt;STRONG&gt;does not retrieve any user data&lt;/STRONG&gt;. I believe that this only requires 'client credentials' and does not require a refresh token. Indeed, I have this working (I am using a Java library right now - Spotify Web API Java) to access the API).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the access token I get apparently expires in one hour anyway.&lt;/P&gt;&lt;P&gt;If this is true, how do I refresh my access? Or do I not need to do that? Very confused.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 02 Jul 2023 19:17:59 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Confused-about-access-token-refresh/m-p/5603872#M9838</guid>
      <dc:creator>Quo_Vadis</dc:creator>
      <dc:date>2023-07-02T19:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Confused about access token refresh</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Confused-about-access-token-refresh/m-p/5606337#M9926</link>
      <description>&lt;P&gt;Yes, you need to get a new token every hour.&amp;nbsp; You get a new token the same way you got the first, with a Basic authentication query to /api/token using your client id and client secret, as per&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/web-api/tutorials/client-credentials-flow" target="_blank"&gt;https://developer.spotify.com/documentation/web-api/tutorials/client-credentials-flow&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 14:11:39 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Confused-about-access-token-refresh/m-p/5606337#M9926</guid>
      <dc:creator>SpotifyTom</dc:creator>
      <dc:date>2023-07-07T14:11:39Z</dc:date>
    </item>
  </channel>
</rss>

