PowAssent v0.1.0-alpha PowAssent.Ecto.UserIdentities.Context behaviour View Source
Handles pow user identity context for user identities.
Link to this section Summary
Link to this section Types
Link to this section Functions
Link to this function
create(config, user, provider, uid)
View Source
create(Pow.Config.t(), user(), binary(), binary()) :: {:ok, user_identity()} | {:error, {:bound_to_different_user, map()}} | {:error, Ecto.Changeset.t()}
Link to this function
create_user(config, provider, uid, params, user_id_params \\ %{})
View Source
create_user(Pow.Config.t(), binary(), binary(), map(), map()) :: {:ok, map()} | {:error, {:bound_to_different_user | :missing_user_id_field, Ecto.Changeset.t()}} | {:error, Ecto.Changeset.t()}
Link to this function
delete(config, user, provider)
View Source
delete(Pow.Config.t(), user(), binary()) :: {:ok, {number(), nil}} | {:error, {:no_password, Ecto.Changeset.t()}}
Link to this function
get_user_by_provider_uid(config, provider, uid)
View Source
get_user_by_provider_uid(Pow.Config.t(), binary(), binary()) :: user() | nil
Link to this section Callbacks
Link to this callback
create(arg0, binary, binary, map, user)
View Source
create(Pow.Config.t(), binary(), binary(), map(), user()) :: {:ok, user()} | {:error, {:bound_to_different_user, map()}} | {:error, Ecto.Changeset.t()}
Link to this callback
create_user(arg0, binary, binary, map, map)
View Source
create_user(Pow.Config.t(), binary(), binary(), map(), map()) :: {:ok, map()} | {:error, {:bound_to_different_user | :missing_user_id_field, Ecto.Changeset.t()}} | {:error, Ecto.Changeset.t()}
Link to this callback
delete(arg0, user, binary)
View Source
delete(Pow.Config.t(), user(), binary()) :: {:ok, {number(), nil}} | {:error, {:no_password, Ecto.Changeset.t()}}
Link to this callback
get_user_by_provider_id(arg0, binary, binary)
View Source
get_user_by_provider_id(Pow.Config.t(), binary(), binary()) :: user() | nil