Decodes the given Base64URL back into a string.

Type signature

(text: string, context?: DecodeContext) => string

Examples

decode("PDw_Pz8-Pg");
// ⇒ "<<???>>"
Try in REPL

Questions

  • How to decode Base64URL?

TypeScript sourceJavaScript source