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.63k stars 137 forks source link

fix/503-consistent-utf8-challenge-strings #507

Closed MasterKale closed 10 months ago

MasterKale commented 10 months ago

This PR updates generateRegistrationOptions() to treat string arguments for challenge as UTF-8 strings. This makes the behavior consistent with generateAuthenticationOptions().

Fixed #503.