Sigra.SessionStores.Ecto (Sigra v1.20.0)

Copy Markdown View Source

Ecto-backed session store implementation.

Stores sessions in the host app's user_sessions table using the generated UserSession schema. All token lookups use the SHA-256 hashed token — the raw token is never persisted.

Required Options

  • :repo - The Ecto Repo module
  • :session_schema - The generated UserSession schema module

These are typically passed through from Sigra.Config.