The problem is **solved**!!!

In the infura site:

Step 1. Create IPFS project with card info  

Step 2. replace the following code with your old code

```
const projectId = '2E8Kps3Xij.................';   //(Step 3. Place the project id from your infura project)
const projectSecret = 'b222afc94.....................';  //(Step 4. Place the project_secrect from your infura project)

const auth = 'Basic ' + Buffer.from(projectId + ':' + projectSecret).toString('base64');


const ipfsClient = require('ipfs-http-client')
const ipfs = ipfsClient.create({ 
  host: "ipfs.infura.io",
   port: 5001, 
   protocol: "https",
   apiPath: "/api/v0",
   headers: {
       authorization: auth,
   }, 
  });
```

Step 5. Save and npm start
 
-----------------------------------------------------------------------------------

https://github.com/SaifulJnU/IFPS_Template/blob/master/IPFS%20infura%20unauthorized%20problem.txt