Pow v0.1.0-alpha.6 Pow.Extension.Ecto.Context.Base View Source

Used for extensions to add helpers for user contexts.

The macro will add two helper methods to the module:

  • user_schema_mod/1
  • repo/1

Usage

defmodule MyPowExtension.Ecto.Context do
  use Pow.Extension.Ecto.Context.Base

  def my_custom_action(_config) do
    mod  = user_mod(config)
    repo = repo(config)

    # ...
  end
end