AshAuthentication.Phoenix.Components.WebAuthn.RegistrationForm (ash_authentication_phoenix v3.0.0-rc.6)

View Source

Registration form for WebAuthn.

Renders an identity input and a "Register with Passkey" button. On click, generates a challenge, pushes it to the JS hook, and handles the attestation response.

On successful registration, 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 root div element.
  • :slot_class - CSS class for the div surrounding the slot.
  • :form_class - CSS class for the form element.
  • :button_text - Text for the registration button.
  • :disable_button_text - Text shown while the registration ceremony is in progress.

See AshAuthentication.Phoenix.Overrides for more information.