AuthShield v0.0.4 AuthShield.Authentication.Schemas.Session View Source

User authenticated session.

Link to this section Summary

Types

t()

Abstract session module type.

Functions

Generates an Ecto.Changeset struct with the changes.

Generates an Ecto.Changeset struct with the changes.

Link to this section Types

Link to this type

t()

View Source
t() :: %AuthShield.Authentication.Schemas.Session{
  __meta__: term(),
  expiration: String.t(),
  id: binary(),
  inserted_at: NaiveDateTime.t(),
  login_at: NaiveDateTime.t(),
  logout_at: NaiveDateTime.t(),
  remote_ip: String.t(),
  updated_at: NaiveDateTime.t(),
  user: AuthShield.Resources.Schemas.User.t(),
  user_agent: String.t(),
  user_id: term()
}

Abstract session module type.

Link to this section Functions

Link to this function

insert_changeset(model, params)

View Source
insert_changeset(model :: t(), params :: map()) :: Ecto.Changeset.t()

Generates an Ecto.Changeset struct with the changes.

Link to this function

update_changeset(model, params)

View Source
update_changeset(model :: t(), params :: map()) :: Ecto.Changeset.t()

Generates an Ecto.Changeset struct with the changes.