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

x/simplewebauthn/packages/server/src/helpers/iso/isoBase64URL.ts

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
Latest
import * as simplewebauthn from "https://deno.land/x/simplewebauthn@v11.0.0/packages/server/src/helpers/iso/isoBase64URL.ts";

Functions

Encode the given array buffer into a Base64URL-encoded string. Ideal for converting various credential response ArrayBuffers to string for sending back to the server as JSON.

Encode a UTF-8 string to base64url

Confirm that the string is encoded into base64

Confirm that the string is encoded into base64url, with support for optional padding

Convert a base64url string into base64

Decode from a Base64URL-encoded string to an ArrayBuffer. Best used when converting a credential ID from a JSON string to an ArrayBuffer, like in allowCredentials or excludeCredentials.

Decode a base64url string into its original UTF-8 string

Remove optional padding from a base64url-encoded string