       const urlQuery = urlSearch && Object.fromEntries(new Map(urlSearch.split("&").map((query) => query.split("="))));
          const postLoginRedirectUri = urlQuery ? urlQuery["post_login_redirect_uri"] : redirectPath;

          window.location.href = decodeURIComponent(postLoginRedirectUri) || defaultRedirectPath;
        } catch (error) {
          console.warn(error);
          window.location.href = defaultRedirectPath;
        }
      }
      function parseIdentityProviderFromUrl() {
        const