You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Could anyone please help me with the following challenge?
We need to include an access token in each HTTP request, as a header:
Authorization: "Bearer: {accessToken}"
Our tokens don't last very long, they expire within a minute or two. So we want to make sure to include an up-to-date token each time TusUploady makes a POST or PATCH (etc.) request. That's why we can't just pass the token to <TusUploady> when we create it.
Hey @joel-s
It should be possible and I think the requestPreSend should be the way to go. But this is exactly what I'm investigating now in #907.
I hope I will have answers and a fix soon for you
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Could anyone please help me with the following challenge?
We need to include an access token in each HTTP request, as a header:
Our tokens don't last very long, they expire within a minute or two. So we want to make sure to include an up-to-date token each time TusUploady makes a POST or PATCH (etc.) request. That's why we can't just pass the token to <TusUploady> when we create it.
I tried this, but it didn't work:
I think it may be possible to do this with an Enhancer, but I'm not sure how to use one to add a header.
All reactions