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

Used to set up context API.

Summary

Types

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

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()}