I'm working on integrating Apple Music into my web app. I let users authenticate once, using Apple's MusicKit JS. However, I'm curious if the resulting Music User Token expires. I'm storing this token in a database, but I need to know if I can use this token again at a later date without having the user authenticate again.
This question seems to be semi-related.
Thanks!
After taking a cursory look around, I've found two different questions in the Apple developer forums suggesting that there is a non-configurable 6-month expiration of these tokens. One of these posts was answered by an Apple Media Engineer 2 months ago, which seems about as authoritative a source as you can get outside of documentation.
Forum entry #1: How to set music user token expiration?
Question:
Answer (from an Apple Media Engineer, 2 months ago):
Forum entry #2: When does a Music User token expire?
Question:
Answer (from a user, 1 year ago):