<?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 Need Help with Spotify API :) in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Need-Help-with-Spotify-API/m-p/5625578#M10384</link>
    <description>&lt;P&gt;I am currently building a project where I have an Express JS server used to make requests to the Spotify API, using the "Authorization Code" method to retrieve user data. I then need to pass this data onto a separate, browser-based Javascript file, to utilize this data. How can I make a request to retrieve this data from the server? It appears that I need the access_token in the link to retrieve the data properly, but I am unsure how I am supposed to update my code, if the access_token changes each time.&amp;nbsp;I am aware of the PKCE method for authorization, but for my purposes, I want to eventually store the user's data long-term in a database within the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to send the access_token to the browser side Javascript? Or is there perhaps another solution? I have attached my current code below. My server is hosted on port 8888, and my browser is hosted on port 5173.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance for the help :))&lt;/P&gt;</description>
    <pubDate>Sun, 20 Aug 2023 21:54:35 GMT</pubDate>
    <dc:creator>Maillew</dc:creator>
    <dc:date>2023-08-20T21:54:35Z</dc:date>
    <item>
      <title>Need Help with Spotify API :)</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Need-Help-with-Spotify-API/m-p/5625578#M10384</link>
      <description>&lt;P&gt;I am currently building a project where I have an Express JS server used to make requests to the Spotify API, using the "Authorization Code" method to retrieve user data. I then need to pass this data onto a separate, browser-based Javascript file, to utilize this data. How can I make a request to retrieve this data from the server? It appears that I need the access_token in the link to retrieve the data properly, but I am unsure how I am supposed to update my code, if the access_token changes each time.&amp;nbsp;I am aware of the PKCE method for authorization, but for my purposes, I want to eventually store the user's data long-term in a database within the server.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to send the access_token to the browser side Javascript? Or is there perhaps another solution? I have attached my current code below. My server is hosted on port 8888, and my browser is hosted on port 5173.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much in advance for the help :))&lt;/P&gt;</description>
      <pubDate>Sun, 20 Aug 2023 21:54:35 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Need-Help-with-Spotify-API/m-p/5625578#M10384</guid>
      <dc:creator>Maillew</dc:creator>
      <dc:date>2023-08-20T21:54:35Z</dc:date>
    </item>
  </channel>
</rss>

