AshAuthentication.Phoenix.Components.WebAuthn.AuthenticationForm
(ash_authentication_phoenix v3.0.0-rc.6)
View Source
Authentication form for WebAuthn.
Renders a "Sign in with Passkey" button. Optionally shows an identity input for non-discoverable credentials.
Supports conditional UI (passkey autofill) when the browser supports it
and show_identity_field is true — the identity input gets
autocomplete="username webauthn" which triggers browser autofill.
On successful authentication, redirects to the sign_in_with_token auth path
(matching the existing auth completion flow used by Password.SignInForm).
Overrides
This component provides the following overrides:
:root_class- CSS class for the rootdivelement.:slot_class- CSS class for thedivsurrounding the slot.:form_class- CSS class for theformelement.:button_text- Text for the authentication button.:disable_button_text- Text shown while the authentication ceremony is in progress.:show_identity_field- Whether to show the identity input (false for discoverable credentials).
See AshAuthentication.Phoenix.Overrides for more information.