// Loads auth/project/org/config values that are commonly used across pages.
async function initializeIndexLibraryValues() {
    const token = await IndexLibrary.GetAccessToken();
    const currentProjectName = await IndexLibrary.GetCurrentProjectName();
    const currentOrganizationName = await IndexLibrary.GetAccountNameAsync();
    const config = await IndexLibrary.GetExtensionConfig();

    return {
        azureAuthenticationHeader: token,
        projectName: currentProjectName,
        organizationName: currentOrganizationName,
        baseAPIUrl: config.apiBaseUrl,
        publisherId: config.publisherId,
        extensionId: config.extensionId
    };
}
