<?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: Access token missing in SceneDelegate callback in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/5200714#M2498</link>
    <description>&lt;P&gt;Had the same issue!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why every Spotify API using program broke, is because their ssl fingerprint has changed. After I changed that to the current one in the code, everything works fine.&lt;/P&gt;</description>
    <pubDate>Thu, 06 May 2021 22:39:30 GMT</pubDate>
    <dc:creator>PacuFTW</dc:creator>
    <dc:date>2021-05-06T22:39:30Z</dc:date>
    <item>
      <title>Access token missing in SceneDelegate callback</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/4953202#M2490</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;Premium&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;USA&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;&lt;STRONG&gt;i&lt;/STRONG&gt;&lt;STRONG&gt;Phone 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&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;iOS 13.4.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I've been working on changing my test app to use token swap. I modeled the client after the example here: (&lt;A href="https://github.com/spotify/ios-sdk/tree/master/DemoProjects/SPTLoginSampleAppSwift/SPTLoginSampleAppSwift" target="_blank"&gt;https://github.com/spotify/ios-sdk/tree/master/DemoProjects/SPTLoginSampleAppSwift/SPTLoginSampleAppSwift&lt;/A&gt;). Since my app is newer it uses SceneDelegate instead of AppDelegate. When I get the callback to&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN class="s1"&gt;func scene(_ scene: UIScene, openURL&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Conte&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;xts URL&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Conte&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;xts: Set&amp;lt;UIOpenURL&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;Conte&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;xt&amp;gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I do the following:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;let parameters = appRemote?.authorizationParameters(from: url);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; l&lt;/SPAN&gt;et access_token = parameters?[SPTAppRemoteAccessTokenKey]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;but there are no parameters. What could cause this? Is there some way to enable more debugging output?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 May 2020 14:28:35 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/4953202#M2490</guid>
      <dc:creator>-2bue2m_6pfz1</dc:creator>
      <dc:date>2020-05-12T14:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Access token missing in SceneDelegate callback</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/5199554#M2491</link>
      <description>I have the same issue, the callback is providing a code but it's not the access_token.&lt;BR /&gt;It looks like this:&lt;BR /&gt;com.blabla.myapp://callback/?code=AQBAGHbWnEzFf_rs_tCshMooN2233GqbWj6EtEUaXxKx_TBVOYzySTIxR-n3Y5vH4zZJNtjAddJBbYYMg5AGNeEAGxjETfTrYZAteDJRcNsY_LB-lXzBFL5BrAZY93X8x30MHgimYnMpnHC-qzYUWd2coZ7DJvkzy2U2fi1zkSVfcIlWgDaCsc-BdCEJ3z78Cz8qDP70CB3daVKf1gjSZPKGiXqaDVJbJ0R10OUI6gYjo6J1Dk8b5Wle19Lfe3bLFqcuGFM98d-i1ZftvTYdy7U7nWA5kWAtgXJvJ92RFQ2xPWs_X7mYv92D6J9_MrFHxKfcaTury925zZJTlP882m_B35pCVTS8H5QQUQ6RBe15dPsEjn31-ocE45O-UiqkOg-zmgRnLpizNDPQUmbt1w&amp;amp;spotify_version=8.6.22.1228</description>
      <pubDate>Wed, 05 May 2021 14:10:31 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/5199554#M2491</guid>
      <dc:creator>Eagleone</dc:creator>
      <dc:date>2021-05-05T14:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Access token missing in SceneDelegate callback</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/5200714#M2498</link>
      <description>&lt;P&gt;Had the same issue!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why every Spotify API using program broke, is because their ssl fingerprint has changed. After I changed that to the current one in the code, everything works fine.&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 22:39:30 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/5200714#M2498</guid>
      <dc:creator>PacuFTW</dc:creator>
      <dc:date>2021-05-06T22:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Access token missing in SceneDelegate callback</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/5437250#M6595</link>
      <description>&lt;P&gt;Sorry can you explain what ssl fingerprint are you referring to? How did you change that in your code? I'm facing the same issue.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2022 22:35:15 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/5437250#M6595</guid>
      <dc:creator>breiko</dc:creator>
      <dc:date>2022-09-29T22:35:15Z</dc:date>
    </item>
    <item>
      <title>Re: Access token missing in SceneDelegate callback</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/5438401#M6626</link>
      <description>&lt;P&gt;The access token won't be in this URL. That's expected. Read the authorization guide for the &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/code-flow/" target="_self"&gt;Authorization Code Flow&lt;/A&gt; for more information. When your application receives the callback URL, you should call `&lt;SPAN&gt;SPTSessionManager.application(_:open:options)`, as demonstrated in the example you linked to &lt;A href="https://github.com/spotify/ios-sdk/blob/f9a7d53967de5ea633845c2387b7fc8f90b96265/DemoProjects/SPTLoginSampleAppSwift/SPTLoginSampleAppSwift/AppDelegate.swift#L16-L19" target="_self"&gt;here&lt;/A&gt;. If you're using the newer scene delegate (or SwiftUI), then you can pass in `UIApplication.shared` for the `app` parameter, and omit the `options` parameter.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Oct 2022 22:56:01 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Access-token-missing-in-SceneDelegate-callback/m-p/5438401#M6626</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2022-10-02T22:56:01Z</dc:date>
    </item>
  </channel>
</rss>

