Announcements

Help Wizard

Step 1

NEXT STEP

Wrong access token return

Wrong access token return

Plan
Premium

 

Country
USA and India 

Device

iPhone

Platform
Mobile (iOS)

Issue : 

We have a app which uses Spotify service to play songs. I've logged in to my app (eg. as user-1 this is currently logged in to Spotify) and then I close my app then go to Spotify and change my account to user-2. After this I open my application and logout from my app then login again I get the access token for user-1 on first fetch but when I fetch the access token for second time I'm getting the correct user's access token which is the user that is currently logged in to Spotify. Also I've cleared all the user data when I click logout in my app.

This is not happening in Android, this occurs only in iOS using Spotify iOS SDK.

Does the SDK caches the old user data ? If yes, How can I clear that ?

How do I solve this issue ?

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random