0

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.

1 Answers1

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