OptionalgetCalled on every request; defaults to always returning "en" if omitted.
Called on every request; return the current bearer token, or null/undefined if there is none yet.
OptionalgetCalled on every request; return credentials to send HTTP Basic Auth, or undefined to skip it.
OptionalonCalled on a 403 response, unless the request's own config sets
suppressForbiddenRedirect: true. Typically wired to a router push
(e.g. to a "not allowed" page).
OptionalonCalled on a response whose status is in serverErrorCodes. Typically
wired to a router push (e.g. to a generic error page).
OptionalserverStatus codes treated as "server error" for onServerError. Defaults to [500, 502, 503, 504].
Passed straight through to
axios.create({ baseURL }).