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

x/oauth2_server/examples/oak-localstorage/deps.ts>encodeBase64

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
function encodeBase64
import { encodeBase64 } from "https://deno.land/x/oauth2_server@0.12.0/examples/oak-localstorage/deps.ts";

CREDIT: https://gist.github.com/enepomnyaschih/72c423f727d395eeaa09697058238727 Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation

Parameters

data: ArrayBuffer | string

Returns

string