Matterway
    Preparing search index...

    Function getMsGraphClient

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

      Parameters

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

        The properties required to authenticate the client.

        • tenantId: string

          The tenant ID for the Azure AD application.

        • clientId: string

          The client ID for the Azure AD application.

        • secret: string

          The client secret for the Azure AD application.

      Returns Promise<Client>

      A promise that resolves to an authenticated SharePoint client.