<?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 Token Retrieval for client side rendered apps in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-Retrieval-for-client-side-rendered-apps/m-p/5186389#M2352</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Linux&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tech Stack&lt;/P&gt;&lt;P&gt;NodeJS, Angular 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am having an issue with the flow of the authentication process; i'll start off by saying I do not have issues with getting the access token but rather, how I can utilize this access token and get it where I want it for the future http requests.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My app is client side rendered Angular 10, when I request my access_token I am able to get it, but my callback URL cannot share data via. localstorage with another domain origin otherwise I would have just set the item and accessed it in my working tab. Likewise when Spotify performs the callback I cannot insert it into my database for the user to use like this because there is no additional info sent with this token so i.e I am using user_ids in my normal routes to insert items into the tables and such, but the callback only gives me the access token and other data that does not help me in this case.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this application was a server-side rendered application this would be more simple as I could return the template in a separate tab and set the local storage item.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So my question is, how are you guys dealing with this? are you able to send additional information from the Spotify auth request along with the access token? I essentially just need to either get that token in my DB or local storage ( preferably local storage )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Apr 2021 03:26:57 GMT</pubDate>
    <dc:creator>apz-2paj_xbju</dc:creator>
    <dc:date>2021-04-12T03:26:57Z</dc:date>
    <item>
      <title>Token Retrieval for client side rendered apps</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Token-Retrieval-for-client-side-rendered-apps/m-p/5186389#M2352</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Linux&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tech Stack&lt;/P&gt;&lt;P&gt;NodeJS, Angular 10&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am having an issue with the flow of the authentication process; i'll start off by saying I do not have issues with getting the access token but rather, how I can utilize this access token and get it where I want it for the future http requests.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My app is client side rendered Angular 10, when I request my access_token I am able to get it, but my callback URL cannot share data via. localstorage with another domain origin otherwise I would have just set the item and accessed it in my working tab. Likewise when Spotify performs the callback I cannot insert it into my database for the user to use like this because there is no additional info sent with this token so i.e I am using user_ids in my normal routes to insert items into the tables and such, but the callback only gives me the access token and other data that does not help me in this case.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this application was a server-side rendered application this would be more simple as I could return the template in a separate tab and set the local storage item.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So my question is, how are you guys dealing with this? are you able to send additional information from the Spotify auth request along with the access token? I essentially just need to either get that token in my DB or local storage ( preferably local storage )&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 03:26:57 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Token-Retrieval-for-client-side-rendered-apps/m-p/5186389#M2352</guid>
      <dc:creator>apz-2paj_xbju</dc:creator>
      <dc:date>2021-04-12T03:26:57Z</dc:date>
    </item>
  </channel>
</rss>

