The string to decode.
Field name for error messages (e.g. pid, sig[0].s).
OptionalexpectedBytes: number
Exact decoded length to enforce, when known.
Reporting layer for the PactError.
The decoded bytes.
PactError MALFORMED on invalid alphabet/length,
non-canonical input or a byte-length mismatch.
Strict base64url decode: alphabet-checked, length-checked, canonical (re-encode must match), byte length pinned when
expectedBytesgiven.context— the layer reporting the failure (codec by default; the derivation module reportsderive).