I'm developing a web app, including backend server and frontend SPA. When the user is authentified, he must be able to visualise confidential images(previously uploaded) in his browser. I would like to know the best secure way to do that.
Once the user is authentified with the backend(JWT), how can the backend send securely the image to the user to be displayed?.
I think of two way possible for that:
Using a signed url with a timeout. It's also mean anybody finding this public url in the timeout timelaps would have acces to the confidential image. But it's seem "google photos"/facebook are working this way.
Send the image in the rest call in base64. It also mean, if we are in a public place, the call can be logged in any server and be still accessible many year from now.
So any suggestions?!