@next-core/brick-kit 2.102.0 → 2.102.1

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.
package/dist/index.esm.js CHANGED
@@ -3193,7 +3193,7 @@ var unauthenticatedConfirmModal;
3193
3193
 
3194
3194
  function handleHttpError(error) {
3195
3195
  // Redirect to login page if not logged in.
3196
- if (isUnauthenticatedError(error)) {
3196
+ if (isUnauthenticatedError(error) && !window.NO_AUTH_GUARD) {
3197
3197
  // Do not show multiple confirm modals.
3198
3198
  if (unauthenticatedConfirmModal) {
3199
3199
  return;
@@ -10413,7 +10413,7 @@ class Router {
10413
10413
  // eslint-disable-next-line no-console
10414
10414
  console.error(error); // Redirect to login page if not logged in.
10415
10415
 
10416
- if (isUnauthenticatedError(error)) {
10416
+ if (isUnauthenticatedError(error) && !window.NO_AUTH_GUARD) {
10417
10417
  mountRoutesResult.flags.unauthenticated = true;
10418
10418
  } else {
10419
10419
  yield _this3.kernel.layoutBootstrap(layoutType);