Post

Replies

Boosts

Views

Activity

Reply to [Apple Music API] How can i control Music User Token expiration time?
@Polyphonic thank you for your answer! But i have another case. I'm developing app which main feature is to show you what your friends have listened recently. I'm using MusicKit to get MusicUserToken, then i save this token to my backend and then use it to update information about user's last listened tracks (using this method - https://developer.apple.com/documentation/applemusicapi/get_recently_played_tracks of AppleMusicApi). The idea is that a user can login once and then not login to the app every day. But now I'm using the method above on backend and 1-2 days after the MusicUserToken is created, it starts returning 403. So is there any way to update MusicUserToken on backend or, initially, get a token that will live a long time (6 month will be great :) )?
Feb ’23