<?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 [iOS] How to get authorisation code to generate access_token and refresh_token at backend web api?. in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/iOS-How-to-get-authorisation-code-to-generate-access-token-and/m-p/5985602#M13346</link>
    <description>&lt;DIV&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;We are having some trouble implementing the IOS Spotify SDK. We use it in the context of user authorisation in order to get the &lt;/SPAN&gt;&lt;SPAN&gt;`code`&lt;/SPAN&gt;&lt;SPAN&gt;. We pass the &lt;/SPAN&gt;&lt;SPAN&gt;`code`&lt;/SPAN&gt;&lt;SPAN&gt; to our api (where it is transformed). Our api (nodejs) calls a spotify token endpoint and we keep getting an error &lt;/SPAN&gt;&lt;SPAN&gt;`code_verifier was incorrect`&lt;/SPAN&gt;&lt;SPAN&gt;. We tried regenerating it and we still get the same error. The &lt;/SPAN&gt;&lt;SPAN&gt;`redirectUri`&lt;/SPAN&gt;&lt;SPAN&gt; is correctly registered and we use it with both api and mobile. On Android it works correctly (with and without &lt;/SPAN&gt;&lt;SPAN&gt;`code_verifier`&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;If anyone can help, please let us know. Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plan&lt;BR /&gt;&lt;/STRONG&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(iPhone/iPad)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(iOS)&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;</description>
    <pubDate>Thu, 04 Apr 2024 06:46:42 GMT</pubDate>
    <dc:creator>31gfcheqbjqv5sylsrna</dc:creator>
    <dc:date>2024-04-04T06:46:42Z</dc:date>
    <item>
      <title>[iOS] How to get authorisation code to generate access_token and refresh_token at backend web api?.</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/iOS-How-to-get-authorisation-code-to-generate-access-token-and/m-p/5985602#M13346</link>
      <description>&lt;DIV&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;We are having some trouble implementing the IOS Spotify SDK. We use it in the context of user authorisation in order to get the &lt;/SPAN&gt;&lt;SPAN&gt;`code`&lt;/SPAN&gt;&lt;SPAN&gt;. We pass the &lt;/SPAN&gt;&lt;SPAN&gt;`code`&lt;/SPAN&gt;&lt;SPAN&gt; to our api (where it is transformed). Our api (nodejs) calls a spotify token endpoint and we keep getting an error &lt;/SPAN&gt;&lt;SPAN&gt;`code_verifier was incorrect`&lt;/SPAN&gt;&lt;SPAN&gt;. We tried regenerating it and we still get the same error. The &lt;/SPAN&gt;&lt;SPAN&gt;`redirectUri`&lt;/SPAN&gt;&lt;SPAN&gt; is correctly registered and we use it with both api and mobile. On Android it works correctly (with and without &lt;/SPAN&gt;&lt;SPAN&gt;`code_verifier`&lt;/SPAN&gt;&lt;SPAN&gt;).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;If anyone can help, please let us know. Thanks&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plan&lt;BR /&gt;&lt;/STRONG&gt;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;India&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(iPhone/iPad)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;(iOS)&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;</description>
      <pubDate>Thu, 04 Apr 2024 06:46:42 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/iOS-How-to-get-authorisation-code-to-generate-access-token-and/m-p/5985602#M13346</guid>
      <dc:creator>31gfcheqbjqv5sylsrna</dc:creator>
      <dc:date>2024-04-04T06:46:42Z</dc:date>
    </item>
  </channel>
</rss>

