Webauthn custom element.
npm install @sonicgarden/webauthn-elementsThis package provides two custom HTML elements for WebAuthn registration(webauthn-registration) and WebAuthn login(webauthn-login).
WebAuthn is a web standard for authenticating users using public key credentials.
These custom elements are designed to easily integrate the WebAuthn registration and login process.
$ npm install --save @sonicgarden/webauthn-elements
`Usage
$3
Import as ES modules:
`js
import '@sonicgarden/webauthn-elements'
`These custom elements can be used within HTML forms. The registration and login process is triggered by the form's submit event.
`html
`$3
- unsupported: Triggered during the form submit timing if the browser does not support WebAuthn.
- error: Triggered when the authentication dialog is cancelled, etc.Browser support
If support for Safari versions below 16.4 is needed, please install the
element-internals-polyfill`.Distributed under the MIT license. See LICENSE for details.