Karta.Accounts.UserSession (Karta v1.0.0)

A signed-in browser session. The session cookie holds a random token; only its SHA-256 is stored here, so the table does not hold anything that signs anyone in. method is how the user signed in (:oidc or :password). A session ends at expires_at, when the user signs out, or when the user is disabled.

Summary

Types

t()

@type t() :: %Karta.Accounts.UserSession{
  __meta__: term(),
  expires_at: term(),
  id: term(),
  inserted_at: term(),
  method: term(),
  token_hash: term(),
  user: term(),
  user_id: term()
}