Pow Session Toolkit v0.1.2 PowSessionToolkit.Session View Source

A session as stored in Mnesia by PowSessionToolkit.MnesiaSessionStore.

Link to this section Summary

Functions

Gets a %Elixir.PowSessionToolkit.Session{} from a conn's private map.

Link to this section Types

Link to this type

t()

View Source
t() :: %PowSessionToolkit.Session{
  created_at: integer(),
  expires_at: integer() | nil,
  id: String.t(),
  last_known_ip: String.t(),
  refresh_token_id: String.t(),
  refreshed_at: integer(),
  token_signature_transport: atom(),
  user_id: pos_integer()
}

Link to this section Functions

Link to this function

get_from_conn(conn)

View Source
get_from_conn(Plug.Conn.t()) :: t() | nil

Gets a %Elixir.PowSessionToolkit.Session{} from a conn's private map.