feat(WebAPI): use `GraphQL` and `CosmosAsync`
Better version of https://github.com/daksh2k/Spicetify-stuff/commit/6edf2235f8b8ec514b27a10aca4607d38b2fbb87
CosmosAsync handles the token for api.spotify.com for ya on all versions, and the getArtistInfo can be fetched through GraphQL so the code looks better
HI @rxri, I faced some issues before with CosmosAsync, that's why I was using fetch for web requests and Cosmos for others. But seems like that shouldn't be the case anymore, also had one doubt are web requests routed through the proxy or directly fetched from the URL?
Requests to Spotify API and to spclient.wg are not routed via cors proxy
Okay, sounds good, I'll test locally and merge if everything works well in some time. Thanks for the contribution.