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/352-not-allowed-error #353

Closed MasterKale closed 1 year ago

MasterKale commented 1 year ago

This PR updates @simplewebauthn/browser to pass through NotAllowedError's because browsers are raising this error type with issues that are browser-specific, but not defined in the WebAuthn spec. To help RP devs identify these types of errors now and in the future, I'm choosing to simply pass the errors through, complete with their original messages.

Fixes #352.