Forum Discussion

nksarke's avatar
nksarke
Frequent Visitor
3 years ago

Using generated client SDK in a shared resource

I am having an issue with the generated typescript-fetch client SDK.

 

When I include the SDK directly in my Next.js frontend application, I can authorize and access the API successfully.

 

When I include the SDK in a shared resource and import it into the same Next.js frontend application, I cannot authorize and receive a 401 failed to fetch error.

 

When included in this shared resource, I have tried both compiled output and uncompiled output when importing. 

No RepliesBe the first to reply