• Sets the shared credentials for all API calls

    Parameters

    • clientId: string

      Spotify application client ID

    • clientSecret: string

      Spotify application client secret

    Returns void

    export function setCredentials(clientId: string, clientSecret: string): void {
    sharedClientId = clientId;
    sharedClientSecret = clientSecret;
    saveLog("Spotify API credentials updated", "DEBUG");
    }