matrix-org / matrix-widget-api

JavaScript/TypeScript API for widgets & web clients to communicate
Apache License 2.0
60 stars 19 forks source link

Authenticated media / MSC3916 support. #115

Open Half-Shot opened 1 day ago

Half-Shot commented 1 day ago

Media across matrix is slowly starting to require authentication, with the major servers out there now requiring new media to be accessed with a bearer token. Widgets obviously do not have access to the client's access token, so will be unable to access this media.

I suspect a good solution here would be to provide APIs for download / thumbnail APIs, and pass along a buffer with the media.

Half-Shot commented 1 day ago

Oh, I actually missed that MSC4039 exists so there is a download API. No thumbnail though :disappointed: