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

x/simplewebauthn/packages/browser/src/helpers/bufferToBase64URLString.ts>bufferToBase64URLString

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

Convert 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.

Helper method to compliment base64URLStringToBuffer

Parameters

buffer: ArrayBuffer

Returns

string