jclib-ui 1.0.288 → 1.0.290

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4233,6 +4233,7 @@ const initConfig = {
4233
4233
  ident: "",
4234
4234
  loginRoute: "/",
4235
4235
  isProductionMode: true,
4236
+ withCredentials: false,
4236
4237
  getToken: () => "",
4237
4238
  setToken: (token) => console.error(MESSAGE_ERROR, token),
4238
4239
  afterRequest: (_res) => {
@@ -5757,6 +5758,7 @@ function useApi(initialConfig = {}) {
5757
5758
  baseURL: globalApiConfig.baseURL,
5758
5759
  timeout: globalApiConfig.timeout,
5759
5760
  auth,
5761
+ withCredentials: globalApiConfig.withCredentials,
5760
5762
  validateStatus: (status) => status >= 200 && status < 400,
5761
5763
  ...initialConfig,
5762
5764
  ...localConfig,