Auth0 Universal Components
    Preparing search index...

    Function createDomainCreateSchema

    • Creates a schema for domain create form validation

      Parameters

      • options: DomainCreateSchemas = {}

        Schema configuration options

      • defaultErrorMessage: string = 'Please enter a valid domain (e.g., example.com or https://example.com)'

        Default error message for validation failures

      Returns ZodObject<
          {
              domain_url: | ZodString
              | ZodEffects<
                  ZodOptional<ZodString>,
                  string | undefined,
                  string | undefined,
              >;
          },
          "strip",
          ZodTypeAny,
          { domain_url?: string },
          { domain_url?: string },
      >