Library API
    Preparing search index...

    Function base64UrlToBase64

    • Normalizes a URL-safe Base64URL string back into a standard Base64 string. Replaces - with +, _ with /, and restores = padding using padTo.

      Parameters

      • base64url: string

        The Base64URL string to convert

      Returns string

      The standard Base64 string with padding restored

      const b64 = base64UrlToBase64('-_8'); // '+/8='