github / webauthn-json

🔏 A small WebAuthn API wrapper that translates to/from pure JSON using base64url.
https://github.github.com/webauthn-json/demo/
MIT License
757 stars 60 forks source link

Expose resident key options #6

Closed bdewater closed 5 years ago

bdewater commented 5 years ago

Thank you for your work!

While reading the source I noticed there was nothing for resident keys available, either

Exposing these is necessary for username- and passwordless login. For more information: https://www.w3.org/TR/webauthn-2/#dictdef-authenticatorselectioncriteria

lgarron commented 5 years ago

Those particular strings don't appear in the source code here because we copy the entire the authenticatorSelection field: https://github.com/github/webauthn-json/blob/master/src/webauthn-schema.ts#L28

Have you run into actual issues trying to use those values?

bdewater commented 5 years ago

Ah, my bad! Have not used it yet but was evaluating it :) thanks!