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

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

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

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

Helper method to compliment bufferToBase64URLString

Parameters

base64URLString: string

Returns

ArrayBuffer