You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To be able to have different axios configurations beyond axiosConfig (ie. interceptors) it should be possible to assign a an axios instance which will be used in place of the global axios, which remains the default.
One example of such use would be to use a separate logger and interceptors for logging WC requests.
To be able to have different axios configurations beyond axiosConfig (ie. interceptors) it should be possible to assign a an axios instance which will be used in place of the global axios, which remains the default.
One example of such use would be to use a separate logger and interceptors for logging WC requests.
`
let wcAxiosInstance = axios.create();
let wcApi = new WooCommerceRestApi({
url: ...,
consumerKey: ...,
consumerSecret: ...,
axiosInstance: wcAxiosInstance
});
`
The text was updated successfully, but these errors were encountered: