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

View Source

Credential management panel for authenticated users.

Displays all registered security keys/passkeys with options to rename, delete, and add new credentials.

Prevents deletion of the last credential.

All credential operations go through AshAuthentication.Strategy.WebAuthn.Actions — the Ash resource layer is never bypassed.

Props

  • strategy - The WebAuthn strategy configuration. Required.
  • current_user - The authenticated user. Required.
  • overrides - A list of override modules.

Overrides

This component provides the following overrides:

  • :root_class - CSS class for the management panel root div.
  • :heading_text - Heading text for the panel.
  • :heading_class - CSS class for the heading.
  • :credential_list_class - CSS class for the credential list.
  • :credential_item_class - CSS class for each credential row.
  • :add_button_text - Text for the add credential button.
  • :add_button_class - CSS class for the add button.
  • :delete_button_text - Text for the delete button.
  • :delete_button_class - CSS class for the delete button.
  • :rename_button_text - Text for the rename button.
  • :rename_button_class - CSS class for the rename button.
  • :save_button_text - Text for the save label button.
  • :cancel_button_text - Text for the cancel rename button.
  • :empty_state_text - Text shown when no credentials exist.
  • :last_credential_warning - Warning when trying to delete the last credential.
  • :label_input_class - CSS class for the label input.
  • :timestamp_class - CSS class for timestamp text.
  • :continue_button_text - Text for the continue button shown after at least one credential is registered.
  • :continue_button_class - CSS class for the continue button.

See AshAuthentication.Phoenix.Overrides for more information.