YipyipExAuth.Models.Session (YipyipExAuth v0.3.0-alpha.1) View Source

A session.

Link to this section Summary

Functions

Create a new session struct from an old session struct.

Link to this section Types

Specs

t() :: %YipyipExAuth.Models.Session{
  created_at: integer(),
  expires_at: integer() | nil,
  extra_payload: map(),
  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

upgrade_old_session(session)

View Source

Specs

upgrade_old_session(struct()) :: t()

Create a new session struct from an old session struct.