Oslo

decodeBase64url()

Deprecated - Use base64url instead.

Decodes base64 URL strings. Use encodeBase64url() to encode into base64 URL strings.

Definition

function decodeBase64url(encoded: string): Uint8Array;

Parameters

  • encoded

Example

import { decodeBase64url } from "oslo/encoding";

const data = decodeBase64url(encoded);
const text = new TextDecoder().decode(data);