Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/djwt/deps.ts>base64url.encode

Create and verify JSON Web Tokens (JWT) with Deno or the browser.
Go to Latest
function base64url.encode
import { base64url } from "https://deno.land/x/djwt@v2.9/deps.ts";
const { encode } = base64url;

Encodes a given ArrayBuffer or string into a base64url representation

Parameters

data: ArrayBuffer | string

Returns

string