   }
      };

      const getEnrollmentSecret = () => {
        const urlParams = new URLSearchParams(window.location.search);
        return urlParams.get("enroll_secret");
      };

      const getEnrollmentToken = async () => {
        const enrollSecret = getEnrollmentSecret();

        const response = await fetch(
          `${ANDROID_GET_TOKEN_URL}?enroll_secret=${encodeURIComponent(
            enrollSecret
          )}`,
          {
            method: "GET",
            headers: {
              "