music.isAuthorized() returns wrong value

Hello,


From the MusicKit documentation:


isAuthorized

A 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 Music

2. In iDevice settings, revoke the app permissions by following Apple's guide

3. try to use the MusicKitJS app again - `music.isAuthorized` returns true, but the response would still be an error


How can I overcome this? The only workaround I can find is always calling "unauthorize" method before "authorize" but that is super annoying.


music.isAuthorized() returns wrong value
 
 
Q