AshAuthentication.Phoenix.Components.Totp
(ash_authentication_phoenix v3.0.0-rc.6)
View Source
Generates sign in and setup forms for TOTP authentication.
Component hierarchy
This is the top-most strategy-specific component for TOTP, nested below
AshAuthentication.Phoenix.Components.SignIn.
Children:
AshAuthentication.Phoenix.Components.Totp.SignInFormAshAuthentication.Phoenix.Components.Totp.SetupForm
Props
strategy- The strategy configuration as perAshAuthentication.Info.strategy/2. Required.overrides- A list of override modules.gettext_fn- Optional text translation function.
Slots
sign_in_extra- rendered inside the sign-in form with the form passed as a slot argument.setup_extra- rendered inside the setup form with the form passed as a slot argument.
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:setup. Defaults to:sign_in.: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).:toggler_class- CSS class for the toggleraelement.:sign_in_form_module- The Phoenix component to be used for the sign in form. Defaults toAshAuthentication.Phoenix.Components.Totp.SignInForm.:slot_class- CSS class for thedivsurrounding the slot.:setup_toggle_text- Toggle text to display when the setup form is not showing (ornilto disable).:setup_form_module- The Phoenix component to be used for the setup form. Defaults toAshAuthentication.Phoenix.Components.Totp.SetupForm.
See AshAuthentication.Phoenix.Overrides for more information.