text: //https://developer.spotify.com/documentation/web-playback-sdk/quick-start/#
  
  export const authEndpoint = "https://accounts.spotify.com/authorize";
  const redirectUri = "http://localhost:3000/";
  const clientId = "b0d91bab61304debabf4d7a96784b7ce";
  
  const scopes = [
      "user-read-currently-playing",
      "user-read-recently-played",
      "user-read-playback-state",
      "user-top-read",
      "user-modify-playback-state",
  ];
  
  export const getTokenFromUrl = () =>{
      return window.location.hash.substring(1).split('&').reduce((initial, item) => {
          let parts = item.split('=');
          initial[parts[0]] = decodeURIComponent(parts[1]);
          
          return initial;    
      }, {})
  }
  
  export const loginUrl = `${authEndpoint}?client_id=${clientId}&redirect_uri=${redirectUri}&scope=${scopes.join("%20")}&response_type=token&show_dialog=true`;
  