Function getSharePointClient

Creates and returns a SharePoint client authenticated with the provided credentials.

  • Parameters

    • props: {
          clientId: string;
          secret: string;
          tenantId: string;
      }

      The properties required to authenticate the client.

      • clientId: string

        The client ID for the Azure AD application.

      • secret: string

        The client secret for the Azure AD application.

      • tenantId: string

        The tenant ID for the Azure AD application.

    Returns Promise<Client>

    A promise that resolves to an authenticated SharePoint client.