Adding interceptors to the global axios instance breaks other packages
Hello
I think adding the error interceptors directly on the global axios instance can lead to unexpected behaviors with other packages that use the global instance. https://gitlab.com/notabene/open-source/pii-sdk/-/blob/master/src/utils/create-client.ts?ref_type=heads#L56-63
For example it breaks inertiajs error handling (https://github.com/inertiajs/inertia/issues/2103).
This can be fixed by creating a local instance in the package.
Happy to submit an example fix PR if you want
Edited by Martin Saldinger