Skip to content

base64UrlDecode ​

base64UrlDecode ​

Decodes canonical unpadded base64url, or returns undefined for invalid/noncanonical input. Empty input yields empty bytes.

ts
function base64UrlDecode(
	value: string,
): Uint8Array | undefined

Parameters

  • value: string

Released under the MIT License.