• Skips to the next track

    Returns Promise<void>

    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()}`,
    },
    },
    );
    });
    }