Potionx.PowAssent.Context (potionx v0.2.17) View Source

Link to this section Summary

Functions

Inserts a changeset to the database. If succesful, the returned row will be reloaded from the database.

Updates a changeset in the database. If succesful, the returned row will be reloaded from the database.

Upserts a user identity. If a matching user identity already exists for the user, the identity will be updated, otherwise a new identity is inserted. Repo module will be fetched from config.

Link to this section Functions

Callback implementation for PowAssent.Ecto.UserIdentities.Context.all/1.

Link to this function

create(user, user_identity_params)

View Source
This function is deprecated. Please use `upsert/2` instead.

Callback implementation for PowAssent.Ecto.UserIdentities.Context.create/2.

Link to this function

create_user(user_identity_params, user_params, user_id_params)

View Source

Callback implementation for PowAssent.Ecto.UserIdentities.Context.create_user/3.

Callback implementation for PowAssent.Ecto.UserIdentities.Context.delete/2.

Link to this function

do_insert(changeset, config, user)

View Source

Inserts a changeset to the database. If succesful, the returned row will be reloaded from the database.

Link to this function

do_update(changeset, config, user)

View Source

Updates a changeset in the database. If succesful, the returned row will be reloaded from the database.

Link to this function

get_user_by_provider_uid(provider, uid)

View Source

Callback implementation for PowAssent.Ecto.UserIdentities.Context.get_user_by_provider_uid/2.

Link to this function

pow_assent_create(user, user_identity_params)

View Source
This function is deprecated. Please use `pow_assent_upsert/2` instead.

See Potionx.PowAssent.Context.pow_assent_upsert/2.

Link to this function

pow_assent_create_user(user_identity_params, user_params, user_id_params)

View Source
Link to this function

pow_assent_delete(user, provider)

View Source
Link to this function

pow_assent_get_user_by_provider_uid(provider, uid)

View Source
Link to this function

pow_assent_upsert(user, user_identity_params)

View Source

See Pow.Config.repo!/1.

Link to this function

upsert(user, user_identity_params)

View Source

Callback implementation for PowAssent.Ecto.UserIdentities.Context.upsert/2.

Link to this function

upsert(user, user_identity_params, config)

View Source

Upserts a user identity. If a matching user identity already exists for the user, the identity will be updated, otherwise a new identity is inserted. Repo module will be fetched from config.

See Pow.Config.user!/1.