Expose HLS access token in API

Calling /api/states/camera.camera_name gives you an access token with which you can get a still image. It would also be nice to expose the HLS access token so I could easilly query the API for it and construct the URL to the master_playlist.m3u8 myself and play it back in my external application.

I’m trying to get the HLS token in order to extract video stream. Any progress? And exactly what method do you use to extract the hls token?