Ipfs http client

I’m trying to use ipfs client in react, but I get the error: basic auth header is invalid,
here’s my code

const auth = 'Basic' + Buffer.from(projectID + ":" + projectSecret).toString("base64")

Welcome to the IPFS forums @malik672 :wave:,

Could you please read the following
How to get useful answers to your questions and share more information on your problem.