react-native-gifted-chat icon indicating copy to clipboard operation
react-native-gifted-chat copied to clipboard

Authenticate Image Download Requests

Open michaelrothkopf opened this issue 1 year ago • 0 comments

Sorry for making an issue for a question, but I am really having trouble.

I need to authenticate image requests within a chat. Server-side, images are stored with a resource identifier UUID attached to the message which points to a record containing the server file path. An API route is used to retrieve the images from the server, which authenticates via a header.

Is there any way to have GiftedChat send its image requests with an authentication header given that the authentication token is held in a globally accessible AppState class?

michaelrothkopf avatar Aug 11 '23 19:08 michaelrothkopf