Skip to content

Commit

Permalink
update spotify requested scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
francoborrelli committed Sep 10, 2024
1 parent 532f29e commit 52e795d
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions src/utils/spotify/login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,27 @@ const redirect_uri = process.env.REACT_APP_REDIRECT_ID as string;
const authUrl = new URL('https://accounts.spotify.com/authorize');

const SCOPES = [
'ugc-image-upload',
'streaming',
'user-read-private',
'user-read-email',
'user-read-recently-played',
'user-read-currently-playing',

'user-read-playback-state',
'user-modify-playback-state',
'user-library-modify',
'user-follow-modify',
'user-read-currently-playing',

'playlist-read-private',
'playlist-modify-public',
'playlist-modify-private',
'playlist-read-collaborative',
'user-library-read',
'user-read-playback-position',
'user-top-read',

'user-follow-modify',
'user-follow-read',
'ugc-image-upload',

'user-read-playback-position',
'user-top-read',
'user-read-recently-played',

'user-library-read',
'user-library-modify',
] as const;

const sha256 = async (plain: string) => {
Expand Down

0 comments on commit 52e795d

Please sign in to comment.