spotify/ios-sdk

Wrong access token return

Opened this issue · 0 comments

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.

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

How do I solve this issue ?