// The authorization token to use with the Spotify API. // Will need to be refreshed once in a while. let authToken: string | null = null; export async function getAuthToken(clientId: string, clientSecret: string) { let requestOpts = { method: "POST", headers: { "Authorization": "Basic " + clientId + ":" + clientSecret }, } const response = await fetch("https://accounts.spotify.com/api/token?grant_type=client_credentials", requestOpts) return await response.json(); } export async function