[iOS] Spotify iOS SDK give invalid client secret error when authorise via Spotify app
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Plan
Free/Premium
Country
Device
(iPhone 11 Pro Max)
Operating System
(iOS 14.7.1.)
My Question or Issue
Our app is using iOS Spotify SDK to manage user playlists. The app use
SPTSessionManager to authenticate the user
It is working fine in 8.6.56 but it is not working with recent Spotify app releases (8.6.68, 8.6.70)
This is the flow we are using:
- The app initiateSession:
sessionManager.initiateSession(
with: [.playlistModifyPublic, .playlistModifyPrivate, .playlistReadPrivate],
options: [.default]
)
- The Spotify app will be opened
- The Spotify called a oAuth endpoint
- Then Spotify app give my app the deeplink like this
app://spotify/?code=XXXX
- Then inside our app we called
sessionManager.application(app, open: url, options: options)
- This called returned {"error":"invalid_request","error_description":"Invalid client secret"}
It is working when I run local server and added tokenSwapURL and tokenRefreshURL. However this is not an option for us to have a additional server.
It is also working when I force the web view authorisation by removing "spotify" out of LSApplicationQueriesSchemes. But this is not a desired UX flow.
Is there some change recently that I should be aware of? How do we fix this?
Thanks for your time.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page