Currently, I am using the Uppy library to upload files in react using the XHR plugin. Sometimes while uploading files the JWT token gets expired and the upload request fails.
Asked
Active
Viewed 267 times
1 Answers
0
try catch the error of the api call, in catch block refresh the jwt token, then recursive call the same function again, this time with new jwt token -> should pass

Julian Kleine
- 1,539
- 6
- 14