.strm files managed by custom built Jellyfin not playing in Infuse

TLDR: I forked Jellyfin and modified the code to enable .strm files to access URLs with an Authorization bearer token header.

My entire media library is stored on Google Drive. I create .strm files containing URLs in this format:

https://www.googleapis.com/drive/v3/files/{FILE_ID}?alt=media

The challenge is that these requests require an Authorization bearer token header. To solve this, I forked Jellyfin and made code modifications to add the necessary authentication header.

Issue

This setup worked perfectly with Infuse versions prior to 8.1.8. However, after updating to Infuse 8.1.8 or later, the content consistently fails to load with the error: “An error occurred loading this content.”