<?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: Client Secret and client ID... in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Client-Secret-and-client-ID/m-p/6842719#M17332</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/26643757"&gt;@MarlaMM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting in the Spotify Community, and Welcome!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best practice is to keep keys out of your code, so I recommend you to make use of .env files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers!&lt;/P&gt;</description>
    <pubDate>Mon, 17 Mar 2025 16:21:45 GMT</pubDate>
    <dc:creator>Ximzend</dc:creator>
    <dc:date>2025-03-17T16:21:45Z</dc:date>
    <item>
      <title>Client Secret and client ID...</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Client-Secret-and-client-ID/m-p/6842162#M17329</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free/Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(iOS 10, Android&amp;nbsp;Oreo, Windows 10,etc.)&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;I'm wondering the best way to use the values given to us from Spotify. Can we use our secrect and ID in a php or javascipt file or is .env the best way to go? As shown here they are using php files:&amp;nbsp;&lt;/P&gt;&lt;P&gt;require 'vendor/autoload.php';&lt;/P&gt;&lt;P&gt;$session = new SpotifyWebAPI\Session(&lt;BR /&gt;'CLIENT_ID',&lt;BR /&gt;'CLIENT_SECRET',&lt;BR /&gt;'REDIRECT_URI'&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;$state = $session-&amp;gt;generateState();&lt;BR /&gt;$options = [&lt;BR /&gt;'scope' =&amp;gt; [&lt;BR /&gt;'playlist-read-private',&lt;BR /&gt;'user-read-private',&lt;BR /&gt;],&lt;BR /&gt;'state' =&amp;gt; $state,&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;header('Location: ' . $session-&amp;gt;getAuthorizeUrl($options));&lt;BR /&gt;die();&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 14:03:03 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Client-Secret-and-client-ID/m-p/6842162#M17329</guid>
      <dc:creator>MarlaMM</dc:creator>
      <dc:date>2025-03-17T14:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Client Secret and client ID...</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Client-Secret-and-client-ID/m-p/6842719#M17332</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/26643757"&gt;@MarlaMM&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for posting in the Spotify Community, and Welcome!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best practice is to keep keys out of your code, so I recommend you to make use of .env files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Mar 2025 16:21:45 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Client-Secret-and-client-ID/m-p/6842719#M17332</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2025-03-17T16:21:45Z</dc:date>
    </item>
  </channel>
</rss>

