<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MusicKit",
  "identifier" : "/documentation/MusicKit/MusicTokenRequestError/userTokenRevoked",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "MusicKit"
    ],
    "preciseIdentifier" : "s:8MusicKit0A17TokenRequestErrorO04userC7RevokedyA2CmF"
  },
  "title" : "MusicTokenRequestError.userTokenRevoked"
}
-->

# MusicTokenRequestError.userTokenRevoked

An error that occurs when the user revokes permission for the
current app to access their Apple Music data.

```
case userTokenRevoked
```

## Discussion

In iOS, apps may attempt to recover from this error condition
by suggesting to their users that they can grant access to their
Apple Music data again by linking to
<doc://com.apple.documentation/documentation/UIKit/UIApplication/openSettingsURLString>.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)