<?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: Authorization Code Flow in Standalone App in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-in-Standalone-App/m-p/5949091#M13184</link>
    <description>&lt;P&gt;This one: &lt;A href="https://community.spotify.com/t5/Spotify-for-Developers/Error-404-403-with-certain-endpoints/m-p/5942174/highlight/true#M13149" target="_blank"&gt;https://community.spotify.com/t5/Spotify-for-Developers/Error-404-403-with-certain-endpoints/m-p/5942174/highlight/true#M13149&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 17 Mar 2024 09:21:07 GMT</pubDate>
    <dc:creator>Ximzend</dc:creator>
    <dc:date>2024-03-17T09:21:07Z</dc:date>
    <item>
      <title>Authorization Code Flow in Standalone App</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-in-Standalone-App/m-p/5947332#M13179</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;India (IN)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Lenovo ThinkPad E14 Gen 2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ubuntu 22.04.4 LTS&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;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Is it possible to handle the entire authorization code flow within the server itself? I prefer avoiding the redirection flow because I want to shield the client from the intricacies of the authorization process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my use case, I need to transmit user-related information (which remains constant) to the client. However, the client need not concern itself with Spotify authentication or other specifics.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, I’m developing an app that displays the music I’m currently listening to. The front-end app will retrieve this information by calling an API, which will simply return the track ID. Despite exploring various options, I haven’t found a straightforward way to achieve this.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 16 Mar 2024 10:06:33 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-in-Standalone-App/m-p/5947332#M13179</guid>
      <dc:creator>athulanilthomas</dc:creator>
      <dc:date>2024-03-16T10:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Code Flow in Standalone App</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-in-Standalone-App/m-p/5947336#M13180</link>
      <description>&lt;P&gt;Tip: search this community. I've answered this question this week already (and in multiple other occasions).&lt;/P&gt;</description>
      <pubDate>Sat, 16 Mar 2024 10:13:20 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-in-Standalone-App/m-p/5947336#M13180</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-03-16T10:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Code Flow in Standalone App</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-in-Standalone-App/m-p/5949091#M13184</link>
      <description>&lt;P&gt;This one: &lt;A href="https://community.spotify.com/t5/Spotify-for-Developers/Error-404-403-with-certain-endpoints/m-p/5942174/highlight/true#M13149" target="_blank"&gt;https://community.spotify.com/t5/Spotify-for-Developers/Error-404-403-with-certain-endpoints/m-p/5942174/highlight/true#M13149&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Mar 2024 09:21:07 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-in-Standalone-App/m-p/5949091#M13184</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2024-03-17T09:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Authorization Code Flow in Standalone App</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-in-Standalone-App/m-p/5970532#M13278</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi @Ximzend, I've developed my own authentication strategy wherein I store the authorization code, initially generated manually by pasting the URL and setting up a callback URL, on the server side. Later, I utilize the &lt;A href="https://github.com/spotify/spotify-web-api-ts-sdk" target="_blank" rel="noopener"&gt;@spotify/spotify-web-api-ts-sdk&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;to extract the code from the database and complete the authentication process. This fantastic library handles token fetching and refreshing seamlessly&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Implementation Details:&lt;/STRONG&gt; &lt;A href="https://github.com/athulanilthomas/athulanilthomas.github.io/blob/main/server/api/spotify/status.get.ts" target="_blank" rel="noopener"&gt;status.get.ts&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2024 12:58:48 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Authorization-Code-Flow-in-Standalone-App/m-p/5970532#M13278</guid>
      <dc:creator>athulanilthomas</dc:creator>
      <dc:date>2024-03-27T12:58:48Z</dc:date>
    </item>
  </channel>
</rss>

