<?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 How to Logout? Is it possible? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-Logout-Is-it-possible/m-p/6981447#M17982</link>
    <description>&lt;P&gt;I’m working on an application using the Spotify API, and I’ve encountered an issue when trying to switch between different user accounts during the OAuth login process.&lt;/P&gt;&lt;P&gt;Here’s the scenario:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;I successfully logged into &lt;STRONG&gt;Account A&lt;/STRONG&gt;, went through the OAuth flow, and everything worked perfectly.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After logging out, I cleared both the cookies and the cache file (which stores the access token).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When I attempted to log into &lt;STRONG&gt;Account B&lt;/STRONG&gt; using the same OAuth flow and redirect URI, I get a 403 Forbidden error when trying to access the /me endpoint.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I’ve confirmed that both accounts have the same permissions and the same OAuth scopes. I’ve also checked the &lt;STRONG&gt;Spotify Developer Dashboard&lt;/STRONG&gt; settings to ensure they are configured properly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My questions are:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Is it possible to switch between different accounts in a single session? What is the correct way to log out of an account and fully reset the OAuth session so that a new login can happen for another user?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Do you need to clear any specific cookies or cache files to reset the session when switching accounts?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there any potential reason why I’m seeing the 403 Forbidden error when trying to use a different account, even though the scopes and permissions are the same?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If anyone has experience with handling multiple accounts in the same application or has encountered this issue before, I’d appreciate any insights or suggestions.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 27 May 2025 00:14:47 GMT</pubDate>
    <dc:creator>brianwongpiano</dc:creator>
    <dc:date>2025-05-27T00:14:47Z</dc:date>
    <item>
      <title>How to Logout? Is it possible?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-Logout-Is-it-possible/m-p/6981447#M17982</link>
      <description>&lt;P&gt;I’m working on an application using the Spotify API, and I’ve encountered an issue when trying to switch between different user accounts during the OAuth login process.&lt;/P&gt;&lt;P&gt;Here’s the scenario:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;I successfully logged into &lt;STRONG&gt;Account A&lt;/STRONG&gt;, went through the OAuth flow, and everything worked perfectly.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;After logging out, I cleared both the cookies and the cache file (which stores the access token).&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When I attempted to log into &lt;STRONG&gt;Account B&lt;/STRONG&gt; using the same OAuth flow and redirect URI, I get a 403 Forbidden error when trying to access the /me endpoint.&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;I’ve confirmed that both accounts have the same permissions and the same OAuth scopes. I’ve also checked the &lt;STRONG&gt;Spotify Developer Dashboard&lt;/STRONG&gt; settings to ensure they are configured properly.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My questions are:&lt;/STRONG&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Is it possible to switch between different accounts in a single session? What is the correct way to log out of an account and fully reset the OAuth session so that a new login can happen for another user?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Do you need to clear any specific cookies or cache files to reset the session when switching accounts?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is there any potential reason why I’m seeing the 403 Forbidden error when trying to use a different account, even though the scopes and permissions are the same?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;If anyone has experience with handling multiple accounts in the same application or has encountered this issue before, I’d appreciate any insights or suggestions.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 27 May 2025 00:14:47 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-to-Logout-Is-it-possible/m-p/6981447#M17982</guid>
      <dc:creator>brianwongpiano</dc:creator>
      <dc:date>2025-05-27T00:14:47Z</dc:date>
    </item>
  </channel>
</rss>

