View Source AshAuthentication.Phoenix.Components.MagicLink (ash_authentication_phoenix v2.1.10)

Generates a sign-in for for a resource using the "Magic link" strategy.

Component hierarchy

This is the top-most strategy-specific component, nested below AshAuthentication.Phoenix.Components.SignIn.

Children:

Props

Overrides

This component provides the following overrides:

  • :root_class - CSS class for the root div element.
  • :label_class - CSS class for the h2 element.
  • :form_class - CSS class for the form element.
  • :request_flash_text - Text for the flash message when a request is received. Set to nil to disable.
  • :disable_button_text - Text for the submit button when the request is happening.

See AshAuthentication.Phoenix.Overrides for more information.

Summary

Types

props()

@type props() :: %{
  :strategy => AshAuthentication.Strategy.t(),
  optional(:overrides) => [module()],
  optional(:current_tenant) => String.t(),
  optional(:context) => map(),
  optional(:auth_routes_prefix) => String.t()
}