How to serve images to authenticated users

I am using: https://www.home-assistant.io/integrations/doods/#sample-configuration to record video.
I want to embed the image created from doods into a notification.
I found: https://www.home-assistant.io/integrations/http/#hosting-files
but it says it won’t protect the images via ha authentication.

Is there a way to make so that only logged in users can get to the images?