Skip to main content
Participant
Mar 4, 2024 5:46 AM UTC
Question

Type error for servicePrincipalCredentialsBuilder()

I am utilizing the adobe PDF services SDK in Node.js (typescript) as follows:

        const credentials = PDFServicesSdk.Credentials
            .servicePrincipalCredentialsBuilder()
            .withClientId(process.env.PDF_SERVICES_CLIENT_ID)
            .withClientSecret(process.env.PDF_SERVICES_CLIENT_SECRET)
            .build();

 

However I keep getting the following type error even though it is working as it should

Property 'servicePrincipalCredentialsBuilder' does not exist on type 'typeof Credentials'.ts(2339)

 

I did install the types for the node sdk, but that didn't help

@types15111019/adobe__pdfservices-node-sdk"

 

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Participant
Apr 10, 2024 7:39 AM UTC

The new v4 version released yesterday has built-in types, which should solve this issue.

Translate
Participant
Apr 9, 2024 11:22 AM UTC

Did you get a reply to this?  I'm having the same issue.

Translate