View Source Lightning.Extensions.AccountHooking behaviour (Lightning v2.10.4)
Allows handling user creation or registration atomically without relying on async events.
Summary
Callbacks
@callback handle_create_user(attrs :: map()) :: {:ok, Lightning.Accounts.User.t()} | {:error, Ecto.Changeset.t()}
@callback handle_register_superuser(attrs :: map()) :: {:ok, Lightning.Accounts.User.t()} | {:error, Ecto.Changeset.t()}
@callback handle_register_user(attrs :: map()) :: {:ok, Lightning.Accounts.User.t()} | {:error, Ecto.Changeset.t()}