# Ipfs http client

**URL:** <https://discuss.ipfs.tech/t/ipfs-http-client/14989>\
**Category:** Help\
**Tags:** js-ipfs\
**Created:** [August 15, 2022, 11:00am UTC](https://discuss.ipfs.tech/t/ipfs-http-client/14989 "2022-08-15T11:00:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![malik672](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/malik672/32/6832_2.png) [@malik672](https://discuss.ipfs.tech/u/malik672)\
**Post date:** [August 15, 2022, 11:00am UTC](https://discuss.ipfs.tech/t/ipfs-http-client/14989/1 "2022-08-15T11:00:52Z")

</div>

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

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

```

---

<div class="post-metadata">

**Author:** ![danieln](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/danieln/32/6408_2.png) [@danieln](https://discuss.ipfs.tech/u/danieln)\
**Post date:** [August 15, 2022, 1:54pm UTC](https://discuss.ipfs.tech/t/ipfs-http-client/14989/2 "2022-08-15T13:54:28Z")

</div>

Welcome to the IPFS forums @malik672 👋,

Could you please read the following  
[How to get useful answers to your questions](https://discuss.ipfs.tech/t/how-to-get-useful-answers-to-your-questions/14990) and share more information on your problem.
