View Source Charon.Models.Session (Charon v1.0.1-beta)

A session.

Link to this section Summary

Functions

Create a new session from config values and overrides.

Link to this section Types

@type t() :: %Charon.Models.Session{
  created_at: integer(),
  expires_at: integer() | nil,
  extra_payload: map(),
  id: String.t(),
  refresh_token_id: String.t(),
  refreshed_at: integer(),
  type: atom(),
  user_id: pos_integer() | binary()
}

Link to this section Functions

Link to this function

new(config, overrides \\ [])

View Source
@spec new(Charon.Config.t(), keyword() | map()) :: t()

Create a new session from config values and overrides.

Provides defaults for :id, :created_at and :expires_at.