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

Rename `AuthenticatorDevice` type and usage #558

Closed MasterKale closed 1 month ago

MasterKale commented 7 months ago

Describe the issue

I don't like that the "authenticator" argument in verifyAuthenticationResponse() is of type "AuthenticatorDevice". I decided these names four years ago, and in retrospect it should have been called something like Credential instead even back then. I'm updating docs for the v10 release right now and it's really standing out as an odd choice in naming.

Next major release consider renaming these two to reflect changes in the ecosystem since 2020.