@tremendous/help
    Preparing search index...

    Function generateMockPublicToken

    • Generate a mock public token for testing.

      Uses crypto.randomUUID() for entropy. Since UUIDs are hex (0-9, A-F), this produces tokens with that character set, which is a valid subset of what the backend accepts (A-Z, 0-9).

      For testing purposes, having tokens with just hex characters is fine and much simpler than trying to expand to the full A-Z range.

      Parameters

      • length: number = 12

        Length of the token (default 12 to match backend)

      Returns string

      A random uppercase hex token

      generateMockPublicToken(); // "F7B9A2C8E4D1"
      generateMockPublicToken(8); // "A3F2B7C9"