nsuite - v1.0.1
    Preparing search index...

    Function generateSvgCaptcha

    • Generates an SVG captcha with a mathematical expression.

      Parameters

      • options: { height?: number; width?: number }

        Options for generating the captcha.

        • Optionalheight?: number

          The height of the captcha image.

        • Optionalwidth?: number

          The width of the captcha image.

      Returns ReturnGenerateSvgCaptcha

      An object containing the captcha text and data.

      import { generateSvgCaptcha } from "nsuite";
      const { text, data } = await generateSvgCaptcha({
      width: 148,
      height: 48,
      });