🔓 Decodes a URL-safe Base64 string to bytes.
Syntax
TypeScript
import { decodeBase64Url } from '@opentf/std'; decodeBase64Url(str: string): Uint8Array
Parameters
str: The URL-safe Base64 string to decode.
Returns
The decoded bytes.
Rejects standard Base64 + and / characters; use decodeBase64() for the non-URL-safe alphabet.
Examples
TypeScript
decodeBase64Url('aGVsbG8') //=> Uint8Array [104, 101, 108, 108, 111]