<?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: How to generate OAuth Token for user account from backend code in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-OAuth-Token-for-user-account-from-backend-code/m-p/5268683#M3320</link>
    <description>&lt;P&gt;The authorization guide is described in detail &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization-guide" target="_self"&gt;here&lt;/A&gt;. You must use either the Authorization Code Flow or the Authorization Code Flow with Proof Key for Code Exchange. The access token can be refreshed without any user input when it expires after an hour.&lt;/P&gt;</description>
    <pubDate>Thu, 30 Sep 2021 12:52:37 GMT</pubDate>
    <dc:creator>Peter_Schorn</dc:creator>
    <dc:date>2021-09-30T12:52:37Z</dc:date>
    <item>
      <title>How to generate OAuth Token for user account from backend code</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-OAuth-Token-for-user-account-from-backend-code/m-p/5268450#M3319</link>
      <description>&lt;P&gt;I am building a test application using the Spotify API that (super simplified) generates a playlist and adds it to my Spotify account. Currently, the playlist is created using a POST call to&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://api.spotify.com/v1/users/" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/users/&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN&gt;user_id&lt;/SPAN&gt;&lt;SPAN&gt;/playlists, which requires a USER_ID and OAUTH TOKEN to succeed. But the manual generated OAuth Token only works for one hour.&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Is it possible to regenerate my user account's OAuth Token automatically in the NodeJS backend similar to Refresh Tokens for applications without having to login myself?&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 30 Sep 2021 05:10:09 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-OAuth-Token-for-user-account-from-backend-code/m-p/5268450#M3319</guid>
      <dc:creator>bijx</dc:creator>
      <dc:date>2021-09-30T05:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to generate OAuth Token for user account from backend code</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-OAuth-Token-for-user-account-from-backend-code/m-p/5268683#M3320</link>
      <description>&lt;P&gt;The authorization guide is described in detail &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization-guide" target="_self"&gt;here&lt;/A&gt;. You must use either the Authorization Code Flow or the Authorization Code Flow with Proof Key for Code Exchange. The access token can be refreshed without any user input when it expires after an hour.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 12:52:37 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-to-generate-OAuth-Token-for-user-account-from-backend-code/m-p/5268683#M3320</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2021-09-30T12:52:37Z</dc:date>
    </item>
  </channel>
</rss>

