Skip to main content
Module

x/djwt/deps.ts>decodeBase64Url

Create and verify JSON Web Tokens (JWT) with Deno or the browser.
Very Popular
Latest
function decodeBase64Url
import { decodeBase64Url } from "https://deno.land/x/djwt@v3.0.2/deps.ts";

Decodes a given base64url-encoded string.

Examples

Example 1

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

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

Parameters

b64url: string

Returns

Uint8Array