View Source Pow.Context behaviour (Pow v1.0.28)

Used to set up context API.

Link to this section Summary

Link to this section Types

@type changeset() :: map()
@type user() :: map()

Link to this section Callbacks

@callback authenticate(map()) :: user() | nil
@callback create(map()) :: {:ok, user()} | {:error, changeset()}
@callback delete(user()) :: {:ok, user()} | {:error, changeset()}
@callback get_by(Keyword.t() | map()) :: user() | nil
@callback update(user(), map()) :: {:ok, user()} | {:error, changeset()}