Announcements

Help Wizard

Step 1

NEXT STEP

Does the iOS sdk handle refresh token automatically?

Does the iOS sdk handle refresh token automatically?

Hello, I am using the demo login project SPTLoginSampleAppSwift and I've setup the backend with /swap and /refresh endpoints. The swap works I see it on the server logs when is called and the demo app goes into pulling current song being played artwork and provide a pause/play button and a disconnect button at the bottom, however when the 1hr passes the app does not refresh the token and instead goes back to the connect button view.

 

What should I do to refresh token?

Reply
3 Replies

Never mind, I had another issue that wasn't related to refreshing the token. Close issue please.

Hi @TheFern2,

 

I'm glad you have found and fixed the issue.

 

Could you please share how you fixed it? Then you can accept it as a solution after clicking the three dots at that message.

 

Cheers,

XimzendSpotify Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

I am still working out the issue, I thought it was resolved with a ui bug but I still don't see my refresh endpoint called

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