Skips to the next track
Error if the request fails
export async function skipToNext(): Promise<void> { await ensureValidToken(); await retryApiCall(async () => { await spotifyAxios.post( `${API_BASE_URL}/me/player/next`, {}, { headers: { Authorization: `Bearer ${getAccessToken()}`, }, }, ); });} Copy
export async function skipToNext(): Promise<void> { await ensureValidToken(); await retryApiCall(async () => { await spotifyAxios.post( `${API_BASE_URL}/me/player/next`, {}, { headers: { Authorization: `Bearer ${getAccessToken()}`, }, }, ); });}
Skips to the next track