Pow v1.0.21 Pow.Context behaviour View Source

Used to set up context API.

Link to this section Summary

Link to this section Types

Link to this type

changeset()

View Source
changeset() :: map()

Link to this section Callbacks

Link to this callback

authenticate(map)

View Source
authenticate(map()) :: user() | nil
Link to this callback

create(map)

View Source
create(map()) :: {:ok, user()} | {:error, changeset()}
Link to this callback

delete(user)

View Source
delete(user()) :: {:ok, user()} | {:error, changeset()}
Link to this callback

get_by(arg1)

View Source
get_by(Keyword.t() | map()) :: user() | nil
Link to this callback

update(user, map)

View Source
update(user(), map()) :: {:ok, user()} | {:error, changeset()}