Axios interceptor, authProvider onError still throws error
i implemented axios as authProvider, but i also added interceptor to refresh access token, i do refresh the token set the new token in the error.config but new problem is onError throws an error now on the screen saying that
TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.
at Object.deleteOne (provider.ts:150:13)
TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined.
at Object.deleteOne (provider.ts:150:13)
