title: Show protected image from API to Next.js client in an img tag
body: <p>I am trying to show a protected image from my Node.js backend assets folder.</p>
  <p>It has a middleware that checks whether the user is logged in and has permission to access the file.</p>
  <p>In the client side I want to display the image in an img tag:</p>
  <p>&lt;img src&quot;localhost:5000/uploads/image.png&quot; /&gt;</p>
  <p>Is there a way to intercept this request to pass the user's token so he will be able to access the image?</p>
  <p>Thanks</p>