View Source Pow.Extension.Phoenix.ControllerCallbacks.Base behaviour (Pow v1.0.38)

Used for the Phoenix Controller Callbacks module in extensions.

Usage

defmodule MyPowExtension.Phoenix.ControllerCallbacks do
  use Pow.Extension.Phoenix.ControllerCallbacks.Base

  @impl true
  def before_respond(Pow.Phoenix.RegistrationController, :create, {:ok, user, conn}, _config) do
    {:ok, user, conn}
  end
end

Summary

Callbacks

Link to this callback

before_process(atom, atom, any, t)

View Source
@callback before_process(atom(), atom(), any(), Pow.Config.t()) :: any()
Link to this callback

before_respond(atom, atom, any, t)

View Source
@callback before_respond(atom(), atom(), any(), Pow.Config.t()) :: any()