The issue I face is that my axios interceptor is not retrying file upload requests using PUT method.
If my JWT tokens expire in the process of trying to upload the file my interceptor refreshes them but doesn't retry the file request upload, all other requests work and get retried once the tokens are refreshed. Wasn't able to find a solid answer to this problem so before sharing a ton of code just wanted to check if this is common.
So my question is this the desired behavior? What would be the workaround? Do a token refresh each time before calling upload request?
My current interceptor looks something as follows:
Thank you for any pointers/help!