Builds a shared Axios instance with a bearer-token + Accept-Language
request interceptor, and an optional 403/server-error response interceptor.
Generalizes the three near-identical axios.create() + interceptor blocks
found in luv-autoq-frontend, ama-deep and data-sheet-portal's
api/modules/base files - the token/language/basic-auth lookups and the
error-routing behavior become caller-supplied callbacks instead of being
hardcoded per app, so this one factory covers all three shapes (including
data-sheet-portal's, the most complete of the three: 403/5xx redirects
plus optional HTTP Basic Auth).
Builds a shared Axios instance with a bearer-token +
Accept-Languagerequest interceptor, and an optional 403/server-error response interceptor.Generalizes the three near-identical
axios.create()+ interceptor blocks found inluv-autoq-frontend,ama-deepanddata-sheet-portal'sapi/modules/basefiles - the token/language/basic-auth lookups and the error-routing behavior become caller-supplied callbacks instead of being hardcoded per app, so this one factory covers all three shapes (includingdata-sheet-portal's, the most complete of the three: 403/5xx redirects plus optional HTTP Basic Auth).