MasterKale / SimpleWebAuthn

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
https://simplewebauthn.dev
MIT License
1.62k stars 137 forks source link

fix/525-tweak-client-data-json-parse-arg-type #527

Closed MasterKale closed 9 months ago

MasterKale commented 9 months ago

This PR updates typing on the data argument of decodeClientDataJSON() to communicate that strings containing base64url-encoded values are the intended shape of the string the method currently accepts.

As the Base64URLString type is a simple type alias of string nothing functionally changes about this method.

Fixes #525.