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/rename-browser-supports-webauthn #257

Closed MasterKale closed 2 years ago

MasterKale commented 2 years ago

This PR is a simple rename of browser's browserSupportsWebauthn() to browserSupportsWebAuthn(). This is a breaking change to SimplewebAuthn.

Fixes #215.

Refactoring existing usage

Simple update calls to browserSupportsWebauthn() to capitalize the "A" in "WebAuthn":

Before:

if (browserSupportsWebauthn()) {
  // ...
}

After:

if (browserSupportsWebAuthn()) {
  // ...
}