@edgetoken/core
    Preparing search index...

    Function base64UrlDecode

    • Decodes an unpadded URL-safe Base64 string into a Uint8Array.

      Normalizes URL-safe characters (- and _) back to standard Base64 (+ and /), re-applies necessary = padding, and returns decoded bytes.

      Parameters

      • input: string

        The URL-safe Base64 string to decode.

      Returns Uint8Array

      The decoded raw bytes as a Uint8Array.

      const bytes = base64UrlDecode("ZXlKaGJHY2lPaUpJVXpJMU5pSjA");