<?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 Is a persistent user-scoped token possible? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Is-a-persistent-user-scoped-token-possible/m-p/5321346#M3852</link>
    <description>&lt;P&gt;Hey everyone, I am building a feature on my website that would render my top ten played songs from the&amp;nbsp;&lt;A title="Get User's Top Items Get User’s Top Items" href="https://developer.spotify.com/console/get-current-user-top-artists-and-tracks/?type=tracks&amp;amp;time_range=&amp;amp;limit=&amp;amp;offset=" target="_blank" rel="noopener"&gt;Get User's Top Items endpoint.&lt;/A&gt;&amp;nbsp;Right now it's working fine with my Bearer hardcoded as an environment variable, however, as soon as that expires my app completely breaks. I was curious as to if there was something similar to Twitter that will allow an app to be scoped to a user (the user that creates the application) however the tokens don't expire and are server to server only (so no OAuth flow).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed the client credentials flow&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/client-credentials/" target="_blank"&gt;https://developer.spotify.com/documentation/general/guides/authorization/client-credentials/&lt;/A&gt;&amp;nbsp;existed, but it has a heavy emphasis on not having any user scope so naturally I haven't given this a go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you and happy new year.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Dec 2021 01:26:14 GMT</pubDate>
    <dc:creator>alsoalistair</dc:creator>
    <dc:date>2021-12-30T01:26:14Z</dc:date>
    <item>
      <title>Is a persistent user-scoped token possible?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Is-a-persistent-user-scoped-token-possible/m-p/5321346#M3852</link>
      <description>&lt;P&gt;Hey everyone, I am building a feature on my website that would render my top ten played songs from the&amp;nbsp;&lt;A title="Get User's Top Items Get User’s Top Items" href="https://developer.spotify.com/console/get-current-user-top-artists-and-tracks/?type=tracks&amp;amp;time_range=&amp;amp;limit=&amp;amp;offset=" target="_blank" rel="noopener"&gt;Get User's Top Items endpoint.&lt;/A&gt;&amp;nbsp;Right now it's working fine with my Bearer hardcoded as an environment variable, however, as soon as that expires my app completely breaks. I was curious as to if there was something similar to Twitter that will allow an app to be scoped to a user (the user that creates the application) however the tokens don't expire and are server to server only (so no OAuth flow).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed the client credentials flow&amp;nbsp;&lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/client-credentials/" target="_blank"&gt;https://developer.spotify.com/documentation/general/guides/authorization/client-credentials/&lt;/A&gt;&amp;nbsp;existed, but it has a heavy emphasis on not having any user scope so naturally I haven't given this a go.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you and happy new year.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Dec 2021 01:26:14 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Is-a-persistent-user-scoped-token-possible/m-p/5321346#M3852</guid>
      <dc:creator>alsoalistair</dc:creator>
      <dc:date>2021-12-30T01:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is a persistent user-scoped token possible?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Is-a-persistent-user-scoped-token-possible/m-p/5322150#M3859</link>
      <description>&lt;P&gt;The Authorization Code Flow and the Authorization Code Flow with Proof Key for Code Exchange both allow you to authorize with a specific user ("&lt;SPAN&gt;user-scoped token").&amp;nbsp; You can then refresh this token every hour without any user input. In that sense, the authorization never expires. Just read the &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/" target="_self"&gt;authorization guide&lt;/A&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 01 Jan 2022 22:40:05 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Is-a-persistent-user-scoped-token-possible/m-p/5322150#M3859</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2022-01-01T22:40:05Z</dc:date>
    </item>
  </channel>
</rss>

