Skip to content

Commit

Permalink
removing 'user verification' capability check against authenticator, …
Browse files Browse the repository at this point in the history
…as not strictly necessary for *this* library; note: this check is moved to 'local-data-lock' library
  • Loading branch information
getify committed Dec 18, 2024
1 parent 9e0c41d commit 17f29f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@lo-fi/webauthn-local-client",
"description": "Browser-only utils for locally managing WebAuthn (passkey) API",
"version": "0.1000.2",
"version": "0.2000.0",
"exports": {
".": "./dist/bundlers/walc.mjs",
"./bundlers/astro": "./bundler-plugins/astro.mjs",
Expand Down
7 changes: 1 addition & 6 deletions src/walc.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,7 @@ const supportsWebAuthn = (
typeof navigator != "undefined" &&
typeof navigator.credentials != "undefined" &&
typeof navigator.credentials.create != "undefined" &&
typeof navigator.credentials.get != "undefined" &&
typeof PublicKeyCredential != "undefined" &&
typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable != "undefined" &&

// NOTE: top-level await (requires ES2022+)
(await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable())
typeof navigator.credentials.get != "undefined"
);

// Re: https://developer.mozilla.org/en-US/docs/Web/API/PublicKeyCredential/isConditionalMediationAvailable
Expand Down

0 comments on commit 17f29f2

Please sign in to comment.