CoherenceAssent v0.2.3 CoherenceAssent.UserIdentities View Source
The boundary for the UserIdentities system.
Link to this section Summary
Functions
Creates a new user identity
Deletes identity from user
Gets a single access grant registered with an application
Link to this section Functions
Creates a new user identity.
Examples
iex> create_identity(user, "github", 1)
{:ok, %UserIdentity{}}
iex> create_identity(user, "github", 1)
{:error, %Ecto.Changeset{}}
Deletes identity from user.
Examples
iex> delete_identity_from_user(user, "github", 1)
{:ok, %UserIdentity{}}
iex> delete_identity_from_user(user, "github", 0)
{:error, %Ecto.Changeset{}}