AshAuthentication.Phoenix.Components.WebAuthn
(ash_authentication_phoenix v3.0.0-rc.6)
View Source
Generates sign in and registration forms for WebAuthn/Passkey authentication.
Component hierarchy
This is the top-most strategy-specific component for WebAuthn, nested below
AshAuthentication.Phoenix.Components.SignIn.
Children:
AshAuthentication.Phoenix.Components.WebAuthn.RegistrationFormAshAuthentication.Phoenix.Components.WebAuthn.AuthenticationFormAshAuthentication.Phoenix.Components.WebAuthn.Support
Props
strategy- The WebAuthn strategy configuration. Required.overrides- A list of override modules.gettext_fn- Optional text translation function.
Overrides
This component provides the following overrides:
:root_class- CSS class for the rootdivelement.:hide_class- CSS class to apply to hide an element.:show_first- The form to show on first load. Either:sign_inor:register. Only relevant if paths aren't set for them in the router.:interstitial_class- CSS class for thedivelement between the form and the toggle.:sign_in_toggle_text- Toggle text to display when the sign in form is not showing (ornilto disable).:register_toggle_text- Toggle text to display when the register form is not showing (ornilto disable).:toggler_class- CSS class for the toggleraelement.:slot_class- CSS class for thedivsurrounding the slot.:registration_form_module- The Phoenix component to be used for the registration form. Defaults toAshAuthentication.Phoenix.Components.WebAuthn.RegistrationForm.:authentication_form_module- The Phoenix component to be used for the authentication form. Defaults toAshAuthentication.Phoenix.Components.WebAuthn.AuthenticationForm.
See AshAuthentication.Phoenix.Overrides for more information.