Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/xserver/src/deps.ts>decodeBase64Url

X-Server a Deno server module with middleware
Go to Latest
function decodeBase64Url
import { decodeBase64Url } from "https://deno.land/x/xserver@5.3.0/src/deps.ts";

Decodes a given base64url-encoded string.

Examples

Example 1

import { decodeBase64Url } from "https://deno.land/std@0.224.0/encoding/base64url.ts";

decodeBase64Url("Zm9vYmFy"); // Uint8Array(6) [ 102, 111, 111, 98, 97, 114 ]

Parameters

b64url: string

Returns

Uint8Array