Skip to content

Commit 4edb3be

Browse files
authored
fix(spotify): added missing human readable scopes to oauth required modal (#2355)
1 parent 9c8d845 commit 4edb3be

File tree

1 file changed

+18
-0
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/credential-selector/components

1 file changed

+18
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/credential-selector/components/oauth-required-modal.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,24 @@ const SCOPE_DESCRIPTIONS: Record<string, string> = {
262262
'sharing.write': 'Share files and folders with others',
263263
// WordPress.com scopes
264264
global: 'Full access to manage your WordPress.com sites, posts, pages, media, and settings',
265+
// Spotify scopes
266+
'user-read-private': 'View your Spotify account details',
267+
'user-read-email': 'View your email address on Spotify',
268+
'user-library-read': 'View your saved tracks and albums',
269+
'user-library-modify': 'Save and remove tracks and albums from your library',
270+
'playlist-read-private': 'View your private playlists',
271+
'playlist-read-collaborative': 'View collaborative playlists you have access to',
272+
'playlist-modify-public': 'Create and manage your public playlists',
273+
'playlist-modify-private': 'Create and manage your private playlists',
274+
'user-read-playback-state': 'View your current playback state',
275+
'user-modify-playback-state': 'Control playback on your Spotify devices',
276+
'user-read-currently-playing': 'View your currently playing track',
277+
'user-read-recently-played': 'View your recently played tracks',
278+
'user-top-read': 'View your top artists and tracks',
279+
'user-follow-read': 'View artists and users you follow',
280+
'user-follow-modify': 'Follow and unfollow artists and users',
281+
'user-read-playback-position': 'View your playback position in podcasts',
282+
'ugc-image-upload': 'Upload images to your Spotify playlists',
265283
}
266284

267285
function getScopeDescription(scope: string): string {

0 commit comments

Comments
 (0)