---
title: MusicTokenRequestError.userTokenRevoked
framework: musickit
role: symbol
role_heading: Case
path: musickit/musictokenrequesterror/usertokenrevoked
---

# MusicTokenRequestError.userTokenRevoked

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

## Declaration

```swift
case userTokenRevoked
```

## Discussion

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 openSettingsURLString.
