Auth0 Universal Components
    Preparing search index...

    Function createSmsContactSchema

    • Creates a schema for SMS-based MFA contact validation with custom error message and optional custom regex

      Parameters

      • OptionalerrorMessage: string

        Custom error message for invalid phone number

      • OptionalcustomRegex: RegExp

        Optional custom regex for phone number validation

      Returns ZodObject<
          { contact: ZodString },
          "strip",
          ZodTypeAny,
          { contact: string },
          { contact: string },
      >

      Zod schema for phone number validation