lukejacksonn / react-slack-clone

Complete chat application, built with Chatkit | by @lukejacksonn

Home Page:https://pusher.com/chatkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Attachment token expired

alexey13 opened this issue · comments

Hi Luke. Let you know that attachment links live very short period. Try to attach pdf for example and click after a minute on the link to download
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<X-Amz-Expires>60</X-Amz-Expires>

What solution to use, how you think? Fetch links every 59 seconds? With fetch by click have problems.

Hey @alexey13 thanks again for the report.. how about this? #64

Yep, like it, refetch by period

Alright! That is merged now 👍