Skip to main content
Module

x/jose/util/base64url.ts

"JSON Web Almost Everything" - JWA, JWS, JWE, JWT, JWK, JWKS with no dependencies using runtime's native crypto in Node.js, Browser, Cloudflare Workers, Electron, and Deno.
Extremely Popular
Go to Latest
File
import * as base64url from '../runtime/base64url.ts'
/** * Utility function to encode a string or Uint8Array as a base64url string. * * @param input Value that will be base64url-encoded. */interface Base64UrlEncode { (input: Uint8Array | string): string}/** * Utility function to decode a base64url encoded string. * * @param input Value that will be base64url-decoded. */interface Base64UrlDecode { (input: Uint8Array | string): Uint8Array}
export const encode: Base64UrlEncode = base64url.encodeexport const decode: Base64UrlDecode = base64url.decode