Form
WebAuthn
Published on
Description
The WebAuthn input components provide hidden form fields for Web Authentication API (WebAuthn) passkey flows. InputWebAuthnCreate is used during passkey registration, and InputWebAuthnGet is used during authentication.
Use these components when implementing passwordless authentication with passkeys. Both components render hidden inputs with autocomplete='webauthn' and require data-options for configuration.
Example
Accessibility
- Both components render as hidden inputs and are not visible or focusable
- The
autocomplete="webauthn"attribute signals to the browser to trigger the WebAuthn ceremony - The actual WebAuthn UI is provided natively by the browser or operating system
Related
- InputPassword — for traditional password authentication
- Form errors — for handling authentication error states
Variables
None