     }

          // we need to get the token and then place it in the enroll link
          try {
            const data = await getEnrollmentToken();
            renderContent(templateId);
            if (!data.android_enrollment_url) {
              throw new Error("Failed to get enrollment token");
            }
            setEnrollTokenUrl(data.android_enrollment_url);
          } catch (error) {
            renderError(
              "This URL is invalid.",
              "Enroll secret is invalid. Pl