intelica-library-ui 0.1.52 → 0.1.54

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.
@@ -288,6 +288,7 @@ const ErrorInterceptor = (req, next) => {
288
288
  const sweetAlertService = inject(SweetAlertService);
289
289
  const configService = inject(ConfigService);
290
290
  const HeaderSettings = {};
291
+ const authenticationClientID = configService.environment?.clientID ?? "";
291
292
  if (!req.url.includes("environment.json")) {
292
293
  HeaderSettings["Accept"] = "application/json";
293
294
  HeaderSettings["Content-Type"] = "application/json";
@@ -296,6 +297,7 @@ const ErrorInterceptor = (req, next) => {
296
297
  HeaderSettings["ClientID"] = configService.environment?.clientID ?? "";
297
298
  HeaderSettings["PageRoot"] = commonFeatureFlagService.GetPageRoot();
298
299
  HeaderSettings["LanguageCode"] = getCookie("language") ?? "";
300
+ HeaderSettings["Access"] = authenticationClientID == "" ? "" : getCookie(authenticationClientID) ?? "";
299
301
  }
300
302
  let _request = req.clone({ headers: new HttpHeaders(HeaderSettings) });
301
303
  return next(_request).pipe(catchError(handleErrorResponse));
@@ -330,8 +332,6 @@ const RefreshTokenInterceptor = (req, next) => {
330
332
  let authenticationLocation = `${configService.environment?.authenticationWeb}?callback=${window.location.href}&clientID=${configService.environment?.clientID}`;
331
333
  let path = `${configService.environment?.authenticationPath ?? ""}/Authenticate/ValidateToken`;
332
334
  var authenticationClientID = configService.environment?.clientID ?? "";
333
- console.log(authenticationClientID);
334
- console.log(getCookie(authenticationClientID));
335
335
  let validateTokenQuery = {
336
336
  token: getCookie("token") ?? "",
337
337
  refreshToken: getCookie("refreshToken") ?? "",