I am attempting to intergate the Apple MusicKit v1 library via a plugin in my strapi web application.
I have this mostly working, but I am having issues with authentication. The MusicKit authentication flow is as follows:
- You call the authorize() method on the MusicKit object
- A popup window opens to allow auth with the user’s Apple credentials
- After successfully authenticating, a localStorage key is added with the resulting auth token from Apple as the value
I have extensively debugged this flow and have found that auth is succeeding on the Apple side and the JS library is attempting to set the localStorage key, but no key is ever set. I tested a simple HTML file to ensure that my Apple Developer token is good, etc, and have isolated this issue to Strapi.
Does anyone have any ideas? Has anyone successfully integrated with MusicKit js?