Is it possible to make an original request again through interceptor? #505
-
Hello, I'm trying to learn how to apply openapi-ts for the new proejct, I wonder if it's possible to make an original request again through the interceptor.
I wonder how I can achieve the functionality above with the generated code
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
Hey @JamesDean7, are you using the Axios client? If so, I'd recommend using those interceptors directly. This feature should really exist for clients that do not support it (like fetch). We will be also improving interceptors in the upcoming clients release, so this is a good feedback. Thank you |
Beta Was this translation helpful? Give feedback.
Hey @JamesDean7, just want to update you here. The new Axios client has been released and it makes a direct use of the native Axios interceptors, so this kind of confusion will never occur there. If you're able to, I encourage you to switch to the latest clients, they're much better!