Post not yet marked as solved
I have a web-app that is recently experiencing problems with users not being able to connect their Apple Music account. It was working perfectly up until now, it may be something with how my dependencies changed but I doubt that.
In any case, once I invoke requestUserToken(), the tab is opened, and after authentication they get "Problem Connecting - There may be a network issue."
Upon hitting "Try Again" the same error message appears, but this time the URL bar shows something along the lines of "ERROR_FAILED_TO_VERIFY_JWT&pod=10".
What can be the reason for this?
Post not yet marked as solved
My web-app acquires an Apple Music User Token via MusicKit JS. I need to store this token so the app can do background operations on the account.My question is simple: how sould I store the Apple Music User token in my database? can it simply be stored in plain-text since it's "coupled" with my developer token, or do I need to use special measures to encrypt it?
Post not yet marked as solved
Hello,Some questions I have about the user tokens that are received when a user authorizes an app:1. Can those be treated like one-time passwords?2. Are they tied to my app only? if someone gets hold of a user's token, can he do as he wishes?2. Do they expire at any time without user intervention?3. What's a safe way to store them in a database? To enable features like continuous sync. Do I need to encrypt them anyhow?
Post not yet marked as solved
Is there a way to get an artist's artwork as it appears on Apple Music? I tried several endpoints without success.I'm referring to the artist's picture, not to his artwork.
Post not yet marked as solved
Hello,From the MusicKit documentation:isAuthorizedA Boolean value indicating whether the user has authenticated and authorized the application for use.However, if the user who has already approved the app once revokes its permission by following this apple guide, the value of the music.isAuthorized remains true:var auth = music.authorize(); //this is a MusicKitInstance
auth.then(function (value) {
console.log(music.isAuthorized);
// this prints true to the console, but the response is still 403 forbidden when the dev and user tokens are passed!
}Steps to reproduce:1. Authorize app to use Apple Music2. In iDevice settings, revoke the app permissions by following Apple's guide3. try to use the MusicKitJS app again - `music.isAuthorized` returns true, but the response would still be an errorHow can I overcome this? The only workaround I can find is always calling "unauthorize" method before "authorize" but that is super annoying.
Post not yet marked as solved
As you know, calling this in Javascript:let auth = music.authorize();Opens the authorization menu in a pop-up (when the user has yet to grant permissions to the app).But the problem here is that Safari is blocking this action *because* of the pop-up. Anyone had any luck solving it?
Post not yet marked as solved
Hello all,I've finally managed to authorize succesfully with MusicKit. However, I'm not sure which kind of data I'm supposed to pass "in the open" and which should be "hidden". For example, the `developerToken` I'm obtaining from a python server-side script. I'm passing it via an Ajax call, is it safe?Which tokens/identifiers should I keep "secret"? only my private keys?document.addEventListener('musickitloaded', function() { // MusicKit global is now defined console.log("Hello!"); MusicKit.configure({ developerToken: '', // here I'm entering the token returned from the JWT (decoded) app: { name: 'MyAppName', build: '1' } }); let music = MusicKit.getInstance(); music.authorize();});